files

POST /documents/v1/files

Request

Request body multipart/form-data

labelsobject nullable

Labels for the file, can be used to store metadata

Labels should be in the format of key=value pairs, e.g. key1=value1; or as a JSON object.

For adding multiple labels, use different form-data fields with the same key.

Example: POST /documents/v1/files Content-Type: multipart/form-data; boundary=----boundary

------boundary Content-Disposition: form-data; name="labels" owner=JohnDoe

------boundary Content-Disposition: form-data; name="labels" project=Tensorlake

Labels can also be provided as a JSON object: ------boundary Content-Disposition: form-data; name="labels" {"owner": "JohnDoe", "project": "Tensorlake"}

Labels are optional and can be used to store additional information about the file.

filestring binary required

The file to upload, must be a valid file

The file should be sent as a binary file in the request body. The file will be stored in the database and can be accessed later.

Response

File uploaded successfully

idstring required

Changes

No recorded changes to this operation across all 2 revisions of this API.