Upload a file
POST/v1/uploads
Request
- multipart/form-data
Body
required
file binary
File to upload
description string
Description of the file
Responses
- 201
- 400
- 422
OK
- application/json
- Schema
- Example (from schema)
Schema
id integer
ID of the file
size integer
Size of the file
mime string
Mime type of the file
ext string
Extension of the file
path string
URL of the uploaded file
description string
Description of the file
src_filename string
Name of the file
created_at string
Date of creation of the file
{
"id": 0,
"size": 0,
"mime": "image/jpeg",
"ext": "jpg",
"path": "string",
"description": "string",
"src_filename": "string",
"created_at": "string"
}
Bad request.
- application/json
- Schema
- Example (from schema)
Schema
message string
{
"message": "400 Bad Request (Client Error)"
}
Unprocessable Content
- application/json
- Schema
- Example (from schema)
Schema
message string
errors object
{
"message": "The given data was invalid",
"errors": {}
}
Loading...