FirstSpirit REST API icon

FirstSpirit REST API

Interact with FirstSpirit REST API

Media → Upload Binary Data To Medium

AI-generated

Summary

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.

Discussion