/api/v2/bpm/permissions/{permission_id}
Метод обновляет разрешение по ID
Path Parameters
- permission_id integer required
ID разрешения
Example: 341243
- application/json
Request Body
- name string required
Possible values:
non-empty
and<= 255 characters
Строка содержащая само разрешение, заданное по определенному шаблону. Подробнее о формировании записи в этой строке можно узнать в общей информации раздела 'Роли и разрешения'
- description string
Possible values:
non-empty
and<= 255 characters
Краткое описание разрешения
Responses
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
- object
{}
{
"status": 1,
"message": "Permission is successfully updated",
"response": {},
"preparingsTime": 0.066
}
Bad Request
- application/json
- Schema
- Example (from schema)
- example-0
- example-1
- example-2
- example-3
Schema
- object
{}
400(404)
{
"status": 0,
"message": "Permission not found",
"response": {},
"preparingsTime": 0.034
}
400
{
"status": 0,
"message": "This field may not be blank.",
"response": {
"name": [
"This field may not be blank."
],
"description": [
"This field may not be blank."
]
},
"preparingsTime": 0.038
}
400_2
{
"status": 0,
"message": "This field may not be null.",
"response": {
"name": [
"This field may not be null."
]
},
"preparingsTime": 0.09
}
400_3
{
"status": 0,
"message": "This field is required.",
"response": {
"name": [
"This field is required."
]
},
"preparingsTime": 0.04
}
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...