Autional Autional
API Reference GitHub autional.com →

POST /auth/me/role-activations

User submits a role activation request (Just-In-Time privilege elevation), providing role ID, reason, and duration

Role Permissions `bearerAuth` application/json

Request Body

Schema: dto.RequestActivationRequest

FieldTypeRequiredExampleConstraintsDescription
duration string Yes
justification string Yes
role_id string Yes

Responses

StatusDescriptionSchema
201Role activation successfulgitee_com_linmes_authms_base_dto.DataResponse-dto_ActivationResponse
400Invalid request parametersdto.SimpleResponseWrapper

Referenced Schemas

dto.ActivationResponse

FieldTypeRequiredExampleConstraintsDescription
activated_at string No
created_at string No
expire_at string No
id string No
justification string No
revoked_at string No
role_id string No
status string No
tenant_id string No
user_id string No

dto.SimpleResponseWrapper

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No

gitee_com_linmes_authms_base_dto.DataResponse-dto_ActivationResponse

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