/api/v2/bpm/projects
Метод создает новый проект на инстансе
- application/json
Request Body
- name string required
Possible values:
non-empty
and<= 255 characters
Наименование проекта
- instanceId int64 required
ID инстанса
Responses
- 200
- 401
OK
- application/json
- Schema
- Example (from schema)
- example-0
- example-1
- example-2
- example-3
- example-4
Schema
- object
{}
200
{
"status": 1,
"message": {
"id": 358,
"name": "Mexico Juarez Cartel",
"instanceId": 5
},
"response": {},
"preparingsTime": 0.112
}
200(400)
{
"status": 1,
"message": {
"name": [
"This field may not be blank."
],
"instanceId": [
"This field may not be null."
]
},
"response": {},
"preparingsTime": 0.034
}
200(400)_2
{
"status": 1,
"message": {
"instanceId": [
"Instance id=99999 not found"
]
},
"response": {},
"preparingsTime": 0.05
}
200(400)_3
{
"status": 1,
"message": {
"name": [
"This field is required."
],
"instanceId": [
"This field is required."
]
},
"response": {},
"preparingsTime": 0.016
}
200_2
{
"status": 1,
"message": {
"id": 359,
"name": "Mexico Pacific Cartel",
"instanceId": 5
},
"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.002
}
Loading...