---
title: "Upload the file's bytes"
method: PUT
path: "/v1/files/{file_id}/content"
tags: ["files"]
---

# Upload the file's bytes

`PUT /v1/files/{file_id}/content`

## Request

- Base URL: `https://api.niubai.vip` (the document declares no server; this is the origin it was published from)
- URL: `https://api.niubai.vip/v1/files/{file_id}/content`
- Auth: HTTP bearer

The second step of `POST /v1/files`: `PUT` the document to the presigned URL with the headers it returned. `204` when stored.

## Path parameters

- `file_id` string, required

## Query parameters

- `token` string, required

## Response `204`

Successful Response

## Other responses

- `400`: error.code is one of: invalid_request
- `401`: error.code is one of: unauthorized
- `404`: error.code is one of: not_found
- `413`: error.code is one of: too_large

---

[API](https://skmtc.dev/niubai/apis/pdf-edit-api-gateway.md) · [All operations](https://skmtc.dev/niubai/apis/pdf-edit-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/niubai/apis/pdf-edit-api-gateway/revisions/83ed2bb54eb5?raw)
