/api/v2/bpm/users/{user_id}/roles
Метод возвращает список назначенных на пользователя BPMS ролей.
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": "",
"response": [
{
"id": 3,
"name": "User",
"description": null,
"permissions": [
6,
341242,
341243,
341244,
341247,
341248,
341236
]
},
{
"id": 1,
"name": "Admin",
"description": "Admin",
"permissions": [
341236
]
}
],
"preparingsTime": 0.044
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- object
{}
{
"status": 0,
"message": "User not found",
"response": {},
"preparingsTime": 0.05
}
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.003
}
Loading...