SDK

Upload a file to project storage.

The metadata should be a JSON string containing:

  • folder: Array of folder names for organizing files
  • custom_metadata: Object with custom key-value pairs
post/sdk/v1.0/files/upload

Request

  • Base URL
    https://api.rebolt.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.rebolt.ai/sdk/v1.0/files/upload
  • Auth
    none declared

Query parameters

project_idstring uuid nullable

The unique identifier of the project

The ID of the project to upload the file to

Request body multipart/form-data

filestring binary required
metadatastring nullable

Metadata for the file

Response

Successful Response

idstring uuid required

The unique identifier of the uploaded file

namestring required
sizeinteger required

File size in bytes

content_typestring required
created_atstring date-time required
updated_atstring date-time required
pathstring[] required

Folder path as array of tokens

metadataobject

Changes

    • breaking

      the request property contentMediaType changed from to application/octet-stream

    • info

      the request property format was generalized from binary to no format

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status