/admin/tenants/{id}/invitation-config
更新指定租户的邀请配置,包括邀请过期天数和默认角色
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
|---|---|---|---|---|---|---|---|
id |
path |
string |
Yes | 租户ID |
Request Body
Schema: dto.UpdateInvitationConfigRequest
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
default_invite_role |
string |
No | |||
invite_expiry_days |
integer |
No |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | 更新成功 | dto.InvitationConfigDetailResponse |
| 400 | 请求参数错误 | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 401 | 未认证 | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 403 | 权限不足 | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 404 | 资源未找到 | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 500 | 服务器内部错误 | gitee_com_linmes_authms_base_dto.SimpleResponse |
Referenced Schemas
dto.InvitationConfigDetailResponse
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | |||
data |
dto.InvitationConfigResponse |
No | |||
message |
string |
No | |||
timestamp |
string |
No |
dto.InvitationConfigResponse
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
default_invite_role |
string |
No | |||
invite_expiry_days |
integer |
No | |||
tenant_id |
string |
No |
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | |||
message |
string |
No | |||
timestamp |
string |
No |