Add an image to the organisation media library. Accepts either a multipart/form-data upload or an application/json body with a url to fetch server-side. Accepted formats: PNG, JPG, GIF, WebP, SVG (max 20 MB). SVG files are sanitised before upload. An optional folder field (default: "uploads") organises the upload; only lowercase letters, numbers, hyphens, and underscores are accepted. On success the new item is prepended to the organisation media library.
For custom components:
RaiselyComponents.api.one('organisations', '{organisation}').all('media').post(data = {}, params = {}, headers = {}) => Promise<{result}>
See Restie Response Data for a more detailed overview of responses through the client wrapper
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
400Validation error (invalid file type, size exceeded, or unreachable URL)
408URL fetch timed out