Autional Autional
API Reference GitHub autional.com →

PUT /admin/tenants/{tenant_id}/applications/{app_id}/members/{role_id}

Update a user's role or permissions in an application.

Tenant Service `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes Tenant ID
app_id path string Yes Application ID
role_id path string Yes Role assignment ID

Request Body

Schema: dto.UpdateUserAppRoleRequest

FieldTypeRequiredExampleConstraintsDescription
expires_at string No
is_active boolean No
permissions array of

string

No
role string No

Responses

StatusDescriptionSchema
200Updated successfullydto.UserAppRoleDetailResponse
400Invalid request parametersgitee_com_linmes_authms_base_dto.SimpleResponse
401Unauthenticatedgitee_com_linmes_authms_base_dto.SimpleResponse
403Insufficient permissionsgitee_com_linmes_authms_base_dto.SimpleResponse
404Role assignment not foundgitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.UserAppRoleDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.UserAppRoleResponse No
message string No

dto.UserAppRoleResponse

User application role details

FieldTypeRequiredExampleConstraintsDescription
application_id string No app_abc123
assigned_by string No
created_at string No
expires_at string No
id string No uar_abc123
is_active boolean No
permissions array of

string

No ['["read"', '"write"]']
role string No admin
tenant_id string No tnt_abc123
updated_at string No
user_id string No usr_xyz789

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No