/api/v2/bpm/actions
Метод создает новое действие, которое может быть совершено на процессе
- application/json
Request Body
- actionName string required
Possible values:
non-empty
and<= 255 characters
Наименование действия
- actionType string required
Possible values:
non-empty
and<= 255 characters
Тип действия. Группа действий с одинаковой механикой
- parameters array
???
Responses
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
- object
{}
{
"status": 1,
"message": "Actions is successfully created",
"response": {
"id": 108,
"actionName": "new_action_for_test",
"actionAlias": "action.exit({{prop.1000_2000}}, {{prop.1111_2222}})",
"actionType": "exit",
"parameters": [
"{{prop.1000_2000}}",
" {{prop.1111_2222}}"
]
},
"preparingsTime": 0.081
}
Bad Request
- application/json
- Schema
- Example (from schema)
- example-0
- example-1
- example-2
Schema
- object
{}
400
{
"status": 0,
"message": {
"actionName": [
"This field may not be blank."
],
"actionType": [
"This field may not be blank."
]
},
"response": {},
"preparingsTime": 0.031
}
400_dev
{
"status": 0,
"message": {
"actionName": [
"This field is required."
],
"actionType": [
"This field is required."
]
},
"response": {},
"preparingsTime": 0.247
}
400_2
{
"status": 0,
"message": {
"actionName": [
"This field may not be null."
],
"actionType": [
"This field may not be null."
],
"parameters": [
"This field may not be null."
]
},
"response": {},
"preparingsTime": 0.029
}
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...