Update a user as admin
Changed onPartially updates a user account for authenticated administrators. Cognito JWTs and Aura Historia access tokens are accepted; delegated access tokens require users:write. The caller's persisted user role must be ADMIN; this authorization is enforced in the service layer. All request fields are optional, but the request body itself must be present and non-empty. Send only one logical change category per request: profile/preferences fields, role, or tier. An empty JSON object ({}) is accepted and returns the existing user unchanged. Demoting the last active administrator is rejected with 409 CONFLICT.
Request
- Base URL: https://api.stage.aura-historia.com
- URL: https://api.stage.aura-historia.com/api/v1/admin/users/{userId}
- Auth: one of:
- HTTP bearer
- HTTP bearer
Path parameters
Unique User ID for the user to update.
Request body
Example request
{
"firstName": "Ada",
"lastName": "Lovelace",
"language": "de",
"currency": "EUR",
"measurementUnit": "METRIC",
"showUnassessedOrSensitiveContent": true,
"tier": "FREE",
"role": "USER"
}Response
User updated successfully.
Example response
{
"language": "de",
"currency": "EUR",
"measurementUnit": "METRIC",
"tier": "FREE",
"role": "USER"
}Changes
- warning
removed the request property
- warning
added the new
DKKenum value to the////////response property for the response status - warning
added the new
HUFenum value to the////////response property for the response status - warning
added the new
INRenum value to the////////response property for the response status - warning
added the new
KRWenum value to the////////response property for the response status - warning
added the new
MXNenum value to the////////response property for the response status - warning
added the new
NOKenum value to the////////response property for the response status - warning
added the new
RONenum value to the////////response property for the response status - warning
added the new
SEKenum value to the////////response property for the response status - warning
added the new
THBenum value to the////////response property for the response status - warning
added the new
TWDenum value to the////////response property for the response status - warning
added the new
ZARenum value to the////////response property for the response status - info
added the new
DKKenum value to the request property//// - info
added the new
HUFenum value to the request property//// - info
added the new
INRenum value to the request property//// - info
added the new
KRWenum value to the request property//// - info
added the new
MXNenum value to the request property//// - info
added the new
NOKenum value to the request property//// - info
added the new
RONenum value to the request property//// - info
added the new
SEKenum value to the request property//// - info
added the new
THBenum value to the request property//// - info
added the new
TWDenum value to the request property//// - info
added the new
ZARenum value to the request property//// - info
added the required property
////to the response with the status
- warning
- warning
removed the request property
- info
added the required property
////to the response with the status
- warning