/api/v2/bpm/users/{user_id}/roles
Метод назначает новую роль для пользователя BPMS.
Path Parameters
- user_id integer required
ID пользователя BPMS
Example: 117
- application/json
Request Body
- roles array required
Массив с IDишниками ролей, которые назначены на пользователя панели администратора BPMS
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
Schema
- object
{}
{
"status": 0,
"message": "Role (id-3333333) doesn't exists",
"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.005
}
Loading...