API Guide
PUT /auth/users/{userId}/user-role
Changes the user role.
API
PUT /auth/users/{userId}/user-role
Description This API changes the role of the user. The user must have ADMIN privileges.
Parameters
Table 16. API parameters
Filter name Description
userId
required string (path)
userId parameter to change a user role.
changeUserRole
required (body)
User role parameter to change the user role.
{
"user_role": "ADMIN"
}
Responses 200 — Success or error response
{
"new_object_id": "string",
"id": "string",
"message": "string",
"messageParams": [
"string"
],
"messages": [
{
"id": "string",
"message": "string",
"field_name": "string",
"messageParams": [
"string"
]
}
]
}
401 — You are not authorized to perform this operation
{
"new_object_id": "string",
"id": "string",
"message": "string",
"messageParams": [
"string"
],
"messages": [
{
"id": "string",
"message": "string",
"field_name": "string",
"messageParams": [
"string"
]
}
]
}
404 — Request entity does not exist
{
"new_object_id": "string",
Authentication
33










