Autional Autional
API Reference GitHub autional.com →

PUT /auth/me

Update the current authenticated user's basic profile, supports modifying username and MFA enable status. Reference: GDPR Art 16 (Right to Rectification), OWASP ASVS V2.1.

Authentication `bearerAuth` application/json

Request Body

Schema: dto.UpdateUserAuthRequest

FieldTypeRequiredExampleConstraintsDescription
mfa_enabled boolean No MFAEnabled
username string No Username

Responses

StatusDescriptionSchema
200User info updated successfullydto.UpdateCurrentUserAuthResponse
400Invalid request parametersgitee_com_linmes_authms_base_dto.SimpleResponse
401Unauthenticated or invalid tokengitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.UpdateCurrentUserAuthResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No