files_v2

PUT /documents/v2/files

Request

Request body multipart/form-data

labelsobject nullable

Optional key‑value labels such as owner=JohnDoe or {"owner":"JohnDoe","project":"Tensorlake"}. Each label goes in its own form‑data part.

file_bytesstring binary required

Binary contents of the file to upload

Example request

{
  "labels": {
    "owner": "JohnDoe",
    "project": "Tensorlake"
  }
}

Response

File uploaded successfully

file_idstring required

The ID of the created file

Use this ID to reference the file in parse, datasets, and other operations.

created_atstring required

The creation date and time of the file.

This is in RFC 3339 format.

Example response

{
  "file_id": "file_12345",
  "created_at": "2023-10-01T12:00:00Z"
}

Changes

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