Upload Page Media
POST
/pages/{route}/media
Upload file(s) to a page via multipart form data.
Parameters
| Name | Type | Description |
|---|---|---|
| route required | string | The page route |
| file required | file | File to upload (multipart/form-data) |
Response Codes
201
File uploaded
401
Unauthorized
404
Page not found
422
Validation error (invalid file type or size)
Send the file as a multipart/form-data request rather than JSON. The Content-Type header should be set to multipart/form-data.