A AuthMS API Wiki API Reference iam.tianv.com →

POST /admin/tenants/{id}/domains

为指定租户添加新的自定义域名

租户服务 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes 租户ID

Request Body

Schema: dto.AddDomainRequest

FieldTypeRequiredExampleConstraintsDescription
domain string Yes acme.example.com 域名
is_primary boolean No False 是否主域名

Responses

StatusDescriptionSchema
201添加成功dto.DomainDetailResponse
400请求参数错误gitee_com_linmes_authms_base_dto.SimpleResponse
401未认证gitee_com_linmes_authms_base_dto.SimpleResponse
403权限不足gitee_com_linmes_authms_base_dto.SimpleResponse
409资源冲突gitee_com_linmes_authms_base_dto.SimpleResponse
500服务器内部错误gitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.DomainDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.DomainResponse No
message string No
timestamp string No

dto.DomainResponse

租户自定义域名信息

FieldTypeRequiredExampleConstraintsDescription
created_at string No 2026-01-01T00:00:00Z 创建时间
domain string No acme.example.com 域名
is_primary boolean No True 是否主域名
tenant_id string No tnt_abc123 租户ID
verified boolean No True 是否验证

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No