Skip to content
Get started

Reactivate a user

POST/v1/viewer/users/reactivate

Restores access for a previously deactivated user. The user will regain their original permissions and be able to log in again.

Body ParametersJSONExpand Collapse
userId: string

User ID to reactivate. Format: usr_{32-hex-chars}

ReturnsExpand Collapse
success: boolean
message: optional string

Reactivate a user

curl https://api.avarasoftware.com/v1/viewer/users/reactivate \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $AVARA_API_KEY" \
    -d '{
          "userId": "usr_1234567890abcdef1234567890abcdef"
        }'
{
  "success": true,
  "message": "User reactivated successfully"
}
Returns Examples
{
  "success": true,
  "message": "User reactivated successfully"
}