Upload a pickup place image
POST/api/v1/pickup-place/:id/image
Upload a pickup place image
Request
Path Parameters
UUID of the pickup place
- multipart/form-data
Body
Responses
- 201
- 400
- 401
- 403
- 404
- 409
- 413
Pickup place image successfully uploaded
- application/json
- application/problem+json
- Schema
- Example (from schema)
Schema
identifier of file - deprecated - kept for backwards compatibility
(unique) path of the file in storage
absolute url where to get file content
deprecated - use url instead
mime content type of file
size of file in bytes
when was file created
when was file updated
{
"path": "string",
"url": "string",
"contentType": "string",
"size": 0,
"created": "2024-07-29T15:51:28.071Z",
"updated": "2024-07-29T15:51:28.071Z"
}
- Schema
- Example (from schema)
Schema
identifier of file - deprecated - kept for backwards compatibility
(unique) path of the file in storage
absolute url where to get file content
deprecated - use url instead
mime content type of file
size of file in bytes
when was file created
when was file updated
{
"path": "string",
"url": "string",
"contentType": "string",
"size": 0,
"created": "2024-07-29T15:51:28.071Z",
"updated": "2024-07-29T15:51:28.071Z"
}
Input data validation error - constraint violation
- application/problem+json
- Schema
- Example (from schema)
Schema
properties
object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
Invalid API token
- application/problem+json
- Schema
- Example (from schema)
Schema
properties
object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
Access denied (under the current user account)
- application/problem+json
- Schema
- Example (from schema)
Schema
properties
object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
Pickup place not found (under the current user account)
- application/problem+json
- Schema
- Example (from schema)
Schema
properties
object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
Conflict
- */*
- Schema
- Example (from schema)
Schema
properties
object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
Request payload (uploaded image) too large
- application/problem+json
- Schema
- Example (from schema)
Schema
properties
object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}