Suspend a user as admin
Changed onSuspends the explicit target user with an administrator-supplied reason.
Cognito JWTs and Aura Historia access tokens are accepted. The caller's persisted user role must be ADMIN; delegated Aura Historia access tokens must also have users:write. Authorization is enforced in the User service, not only at the HTTP route.
userId must be a valid User ID. reason is required, must not be empty or whitespace-only, and is limited to 1,000 bytes. It is emitted to structured operational logs, so it must not contain tokens, passwords, credentials, or other secrets. Common credential markers are rejected. Suspension is idempotent: a repeated request returns the target's suspended state. The final active administrator cannot be suspended. Once committed, a suspended user is rejected as 401 INVALID_CREDENTIALS by all later Cognito JWT and Aura access-token authentication. Every response sends Cache-Control: no-store.
Request
- Base URL: https://api.stage.aura-historia.com
- URL: https://api.stage.aura-historia.com/api/v1/admin/users/{userId}/suspension
- Auth: one of:
- HTTP bearer
- HTTP bearer
Path parameters
Unique User ID for the user to suspend.
Request body
Example request
{
"reason": "Repeated policy violations"
}Response
User is suspended, including after an idempotent repeat.
Example response
{
"suspended": true
}Changes
- breaking
the
response's property format changed fromuuidto no format for status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - info
for the
pathrequest parameteruserId, the format was generalized fromuuidto no format - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status
- breaking
- info
endpoint added
- info