/api/v2/bpm/events
Метод создает новое событие
- application/json
Request Body
- eventName string required
Possible values:
non-empty
and<= 255 characters
Наименование события
- eventAlias string required
Possible values:
non-empty
and<= 255 characters
Алиас события. Для клика - onClick
- isDefault boolean required
???Дефолтовое событие
Responses
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
- example-0
- example-1
Schema
- object
{}
200
{
"status": 1,
"message": "Event is successfully created",
"response": {
"id": 7,
"eventName": "Долгое нажатие",
"eventAlias": "long_top",
"isDefault": true
},
"preparingsTime": 0.114
}
200_2
{
"status": 1,
"message": "Event is successfully created",
"response": {
"id": 8,
"eventName": "Выделение текста",
"eventAlias": "text_selection",
"isDefault": false
},
"preparingsTime": 0.044
}
Bad Request
- application/json
- Schema
- Example (from schema)
- example-0
- example-1
- example-2
Schema
- object
{}
400
{
"status": 0,
"message": {
"eventName": [
"This field is required."
],
"eventAlias": [
"This field is required."
],
"isDefault": [
"This field is required."
]
},
"response": {},
"preparingsTime": 0.034
}
400_2
{
"status": 0,
"message": {
"eventName": [
"This field may not be blank."
],
"eventAlias": [
"This field may not be blank."
],
"isDefault": [
"This field may not be null."
]
},
"response": {},
"preparingsTime": 0.032
}
400_3
{
"status": 0,
"message": {
"eventName": [
"This field may not be null."
],
"eventAlias": [
"This field may not be null."
],
"isDefault": [
"This field may not be null."
]
},
"response": {},
"preparingsTime": 0.033
}
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...