Upload an image
POST/api/v2/posts/upload-image
This endpoint lets you upload images and returns a public url, which can
be used as for the image_url when creating a post.
Request
- multipart/form-data
Body
required
files binary[]required
Responses
- 201
- 400
- 401
- 403
- 404
- 422
- 500
- application/json
- Schema
- Example (from schema)
Schema
status string
result
object
required
uploads uri[]required
{
  "status": "string",
  "result": {
    "uploads": [
      "https://example.com/d3c55dff-4ce1-4390-843f-57e3a56ee7fe"
    ]
  }
}
- application/json
- Schema
- Example (from schema)
Schema
statusCode integerrequired
HTTP status code
message string
Error message
error string
Error name
{
  "statusCode": 404,
  "message": "Cannot find item",
  "error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
statusCode integerrequired
HTTP status code
message string
Error message
error string
Error name
{
  "statusCode": 404,
  "message": "Cannot find item",
  "error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
statusCode integerrequired
HTTP status code
message string
Error message
error string
Error name
{
  "statusCode": 404,
  "message": "Cannot find item",
  "error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
statusCode integerrequired
HTTP status code
message string
Error message
error string
Error name
{
  "statusCode": 404,
  "message": "Cannot find item",
  "error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
- Array [ 
- ] 
statusCode integerrequired
HTTP status code
message string
Error message
location stringrequired
Possible values: [query, body, response, param]
Where in the request the error occurred
errors
object[]
required
path stringrequired
Possible values: non-empty
Path to the property with the error
constraints
object
required
property name* string
Error message
{
  "statusCode": 404,
  "message": "Cannot find item",
  "location": "query",
  "errors": [
    {
      "path": "business.id",
      "constraints": {
        "object_required_property": "Required property"
      }
    }
  ]
}
- application/json
- Schema
- Example (from schema)
Schema
statusCode integerrequired
HTTP status code
message string
Error message
error string
Error name
{
  "statusCode": 404,
  "message": "Cannot find item",
  "error": "Not Found"
}
Loading...