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

PUT /admin/tenants/{id}/members/{member_id}

更新指定租户中某个成员的角色和权限

租户服务 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes 租户ID
member_id path string Yes 成员ID

Request Body

Schema: dto.UpdateMemberRequest

FieldTypeRequiredExampleConstraintsDescription
department_id string No dept_002 部门ID
role string No admin 角色
status string No active 状态

Responses

StatusDescriptionSchema
200更新成功dto.MemberDetailResponse
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.MemberDetailResponse

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

dto.MemberResponse

租户成员信息

FieldTypeRequiredExampleConstraintsDescription
department_id string No dept_001 部门ID
joined_at string No 2026-01-15T10:30:00Z 加入时间
role string No member 角色
status string No active 状态
tenant_id string No tnt_xyz789 租户ID
user_id string No usr_abc123 用户ID

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No