Upload a media file.
POST/media/upload
Upload a file (image or PDF) to create a new media item. Send as multipart/form-data with file, or JSON with base64-encoded file.
Optionally include products (array of product IDs) and central (boolean).
Request
Responses
- 200
- 401
- 403
- 422
Successful operation. Returns the created media item.
Unauthorized
Forbidden
Unprocessable Entity