/api/v2/bpm/users/{user_id}/roles
Метод удаляет роль назначенную пользователю BPMS. Сама роль при этом остается в системе, она удаляется с помощью метода DELETE /bpm/roles/:role_id.
Path Parameters
- user_id integer required
ID пользователя BPMS
Example: 117
Responses
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
- object
{}
{
"status": 1,
"message": "User roles is updated",
"response": {}
}
Bad Request
- application/json
- Schema
- Example (from schema)
- example-0
- example-1
Schema
- object
{}
400(404)
{
"status": 0,
"message": "User not found",
"response": {},
"preparingsTime": 0.032
}
400
{
"status": 0,
"message": "Role (id-4) doesn't exists or don't link to this user",
"response": {}
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
- object
{}
{
"status": 0,
"message": "Authentication credentials were not provided.",
"response": {
"detail": "Authentication credentials were not provided."
},
"preparingsTime": 0.002
}
Loading...