Actions29
- Media Actions
- Page Reference Actions
- Search Actions
- Template Actions
- Page Actions
- Add Section To Body
- Execute Actions On Page
- List Pages
- Create Page
- Get Input Element Of Form
- Update Input Element Of Form
- Get Input Element Of Section Form
- Update Input Element Of Section Form
- Get Page
- Get Input Elements Of Form From Page
- Get Bodies Of Page
- Get Body Of Page By Name
- Get Input Elements Of Section Form From Page
- Script Actions
- Project Actions
Media → Upload Binary Data To Medium
AI-generatedSummary
Upload binary data from a local file path to a specified medium in a FirstSpirit project.
Inputs
- Project ID (required) — The ID of the project containing the medium to upload data to.
- Medium UID (required) — The unique identifier of the medium to which the binary data will be uploaded.
- File Path (required) — The local file system path of the binary file to upload to the medium.
Output shape
a single JSON object representing the response from the FirstSpirit REST API upload endpoint
The file specified by 'File Path' must exist locally; the operation reads and uploads its contents. If the file does not exist, an error is thrown. The node sends a PUT request with binary file data in a multipart/form-data format and returns the JSON response from the API.