/api/v2/bpm/permissions
Метод создает новое разрешение для ролей
- application/json
Request Body
- name string required
Possible values:
non-empty
and<= 255 characters
Строка содержащая само разрешение, заданное по определенному шаблону. Подробнее о формировании записи в этой строке можно узнать в общей информации раздела 'Роли и разрешения'
- description string
Possible values:
non-empty
and<= 255 characters
Краткое описание разрешения
Responses
- 201
- 400
Created
- application/json
- Schema
- Example (from schema)
- Example
Schema
- object
{}
{
"status": 1,
"message": "Permission is successfully created",
"response": {
"id": 341246,
"name": "deny: method[delete] /processes/<process_id>",
"description": "Issued by the Federal Aviation Administration (FAA)"
},
"preparingsTime": 2.826
}
Bad Request
- application/json
- Schema
- Example (from schema)
- example-0
- example-1
- example-2
Schema
- object
{}
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.033
}
400_2
{
"status": 0,
"message": "This field may not be null.",
"response": {
"name": [
"This field may not be null."
]
},
"preparingsTime": 0.033
}
400_3
{
"status": 0,
"message": "This field is required.",
"response": {
"name": [
"This field is required."
]
},
"preparingsTime": 0.029
}
Loading...