/api/v2/bpm/actions/{action_id}
Метод обновляет информацию о действии по ID
Path Parameters
- action_id integer required
ID действия, которое может быть совершено на процессе
Example: 120
- 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
- 404
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
- object
{}
{
"status": 1,
"message": "Actions is successfully updated",
"response": {
"id": 120,
"actionName": "changed_name_2",
"actionAlias": "action.log({{prop.1133_2233}})",
"actionType": "log",
"parameters": [
"{{prop.1133_2233}}"
]
},
"preparingsTime": 0.071
}
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.033
}
400_dev
{
"status": 0,
"message": {
"actionName": [
"This field is required."
],
"actionType": [
"This field is required."
]
},
"response": {},
"preparingsTime": 0.215
}
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.05
}
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
}
Not Found
- application/json
- Schema
- Example (from schema)
- Example
Schema
- object
{}
{
"status": 0,
"message": "Endpoint en/api/v2/bpm/actions/12000 not found",
"response": {},
"preparingsTime": 0.381
}
Loading...