/api/v2/bpm/files
Метод сохраняет изображение в системе и возвращает путь по которому оно сохранено
- multipart/form-data
Request Body
- new_file binary
Responses
- 200
- 401
OK
- application/json
- Schema
- Example (from schema)
- example-0
- example-1
Schema
- object
{}
200(400)
{
"status": 1,
"message": "",
"response": {
"success": true,
"file": []
},
"preparingsTime": 0.04
}
200
{
"status": 1,
"message": "",
"response": {
"success": true,
"file": [
{
"id": 273,
"file_name": [
"utka20.png",
"c0baa5ec232bf84379981ff42aac66c5.png"
],
"path": "media/c0/ba/c0baa5ec232bf84379981ff42aac66c5.png",
"thumb": "media/thumb/c0/ba/c0baa5ec232bf84379981ff42aac66c5.png"
}
]
},
"preparingsTime": 0.693
}
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.008
}
Loading...