---
title: "PUT /documents/v2/files"
method: PUT
path: "/documents/v2/files"
tags: ["files_v2"]
---

# PUT /documents/v2/files

`PUT /documents/v2/files`

## Response `200`

File uploaded successfully

- FileCreatedResponse
  - `file_id` string, required — The ID of the created file Use this ID to reference the file in parse, datasets, and other operations.
  - `created_at` string, required — The creation date and time of the file. This is in RFC 3339 format.

## Other responses

- `400` — Invalid request. This error can occur if the multipart request is missing a file, or if the upload is interrupted.
- `401` — Unauthorized. Invalid or missing credentials
- `403` — Forbidden. You do not have permission to access this resource
- `499` — Client closed request. This error can occur if the client closes the connection before the upload is complete.
- `500` — Something went wrong on our side. Please reach out to support@tensorlake.ai for assistance.

---

[API](https://skmtc.net/tensorlakeai/apis/tensorlake-api.md) · [All operations](https://skmtc.net/tensorlakeai/apis/tensorlake-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tensorlakeai/tensorlake-api/revisions/fb161f7c0ab7/schema)
