/api/v2/bpm/properties/types/{type_id}
Метод обновляет тип свойств по ID
Path Parameters
- type_id integer required
ID типа свойства
Example: 9
- application/json
Request Body
- name string required
Possible values:
non-empty
and<= 255 characters
Наименование типа свойства
- description string
Possible values:
non-empty
and<= 255 characters
Описание типа свойства
- settings object
Дополнительные свойства типа (регулярка, возвращаемый тип, требуется ли мультилэнг)
Responses
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
- object
{}
{
"status": 1,
"message": "PropertyType is successfully updated",
"response": {
"id": 9,
"name": "CMYK",
"description": "Cyan, Magenta, Yellow, Key color",
"settings": {}
},
"preparingsTime": 0.047
}
Bad Request
- application/json
- Schema
- Example (from schema)
- example-0
- example-1
- example-2
Schema
- object
{}
400(404)
{
"status": 0,
"message": "Not found",
"response": {},
"preparingsTime": 0.055
}
400
{
"status": 0,
"message": {
"name": [
"This field may not be blank."
],
"description": [
"This field may not be blank."
]
},
"response": {},
"preparingsTime": 0.063
}
400_2
{
"status": 0,
"message": {
"name": [
"This field may not be null."
]
},
"response": {},
"preparingsTime": 0.085
}
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.005
}
Loading...