ApiUsers
Update current user profile
Update the authenticated user's name or avatar. Role and active-status changes require admin privileges.
Authorization
User API Key AuthorizationBearer <token>
User API key (mgw_usr_live_* or mgw_usr_test_*)
In: header
Cookie Parameters
access_token?|
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PATCH "https://loading/api/v1/users/me" \ -H "Content-Type: application/json" \ -d '{}'{
"email": "user@example.com",
"name": "string",
"avatar_url": "string",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"role": "owner",
"is_active": true,
"email_verified": true,
"sso_provider": "string",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"last_login_at": "2019-08-24T14:15:22Z"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Reactivate a user
Reactivate a previously deactivated user account. API keys are not restored; the user must create new ones. Requires ADMIN or OWNER role.
Update a user
Update a user's profile, role, or active status. Role changes are validated against the role hierarchy and invalidate the user's sessions. Requires ADMIN or OWNER role.
