oneAI icon

oneAI

Interact with the oneAI API

Space → Upload File

AI-generated

Summary

Upload a binary file to a specified space on the OneAI platform at a designated path, optionally replacing existing files and queuing the file for embedding after upload.

Inputs

  • Space ID (required) — The ID of the space where the file will be uploaded.
  • File Path (required) — The destination path for the uploaded file within the space.
  • Auto Embed — Flag to automatically queue the uploaded file for embedding after the upload completes.
  • Replace — Flag to replace an existing file at the same path if it exists.
  • Binary Property — Name of the binary property in the input data that contains the actual file to upload.

Output shape

A single record containing the upload response with metadata about the uploaded file.

The operation returns data about the uploaded file. Errors occur if the file cannot be found in the specified binary property or the upload fails. No pagination applies.

Links

Discussion