/api/v2/bpm/events/{id}
Метод обновляет информацию о событии по ID
Path Parameters
- id integer required
ID события. О событии можно сказать, как о внешнем воздействии НА систему, чаще всего это какие-то действия пользователя с элементами графического интерейса
Example: 8
- 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
- 404
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
- object
{}
{
"status": 1,
"message": "Event is successfully updated",
"response": {
"id": 8,
"eventName": "Свап влево двумя пальцами",
"eventAlias": "swap_left_two_fingers",
"isDefault": true
},
"preparingsTime": 0.047
}
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.069
}
400_2
{
"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.067
}
400_3
{
"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.051
}
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.002
}
Not Found
- application/json
- Schema
- Example (from schema)
- Example
Schema
- object
{}
{
"status": 0,
"message": "Endpoint en/api/v2/bpm/events/100 not found",
"response": {},
"preparingsTime": 0.322
}
Loading...