Autional Autional
API Reference GitHub autional.com →

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

Update the role and permissions of a member in a specified tenant

Tenant Service `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes Tenant ID
member_id path string Yes Member ID

Request Body

Schema: dto.UpdateMemberRequest

FieldTypeRequiredExampleConstraintsDescription
department_id string No dept_002 Department ID
role string No admin Role
status string No active Status

Responses

StatusDescriptionSchema
200Update successfuldto.MemberDetailResponse
400Invalid request parametersgitee_com_linmes_authms_base_dto.SimpleResponse
401Unauthenticatedgitee_com_linmes_authms_base_dto.SimpleResponse
403Insufficient permissionsgitee_com_linmes_authms_base_dto.SimpleResponse
404Resource not foundgitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_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

Tenant member information

FieldTypeRequiredExampleConstraintsDescription
department_id string No dept_001 Department ID
joined_at string No 2026-01-15T10:30:00Z Join time
role string No member Role
status string No active Status
tenant_id string No tnt_xyz789 Tenant ID
user_id string No usr_abc123 User ID

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No