Upload an image or video
upload_mediaAdd an image or video to your organization's media library and receive the file id required to include it in a publication. Accepts local file paths or public HTTPS URLs.
Instructions
Put an image or video into an organization's file library and get back the id that create_publication consumes in files. Absolute path to a local file, or a public https URL. Local paths only work because this server runs on the user's own machine, and only inside the directories the server was allowed to read. Accepted formats: jpg, jpeg, png, gif, mp4, heic, heif.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Absolute path to a local file, or a public https URL. Local paths only work because this server runs on the user's own machine, and only inside the directories the server was allowed to read. | |
| filename | No | Name to store it under. Deduced from the source when omitted. | |
| id_organization | No | The PlanVortex organization id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| upload | Yes | ||
| already_existed | Yes |