---
title: "Upload a file chunk"
method: POST
path: "/v7/file_cmds/upload/{file_id}/chunk/{chunk_number}"
tags: ["Step 2"]
---

# Upload a file chunk

`POST /v7/file_cmds/upload/{file_id}/chunk/{chunk_number}`

## Request

- Base URL: `https://example.com`
- URL: `https://example.com/v7/file_cmds/upload/{file_id}/chunk/{chunk_number}`
- Auth: one of:
  - API key in header `Authorization`
  - OAuth 2
    - Authorization code: `https://{your-auth-url}`
    - Client credentials
    - Token URL: `https://{your-bynder-domain}/v6/authentication/oauth2/token`

Upload a chunk of the file.

## Path parameters

- `file_id` string, required
- `chunk_number` integer, required

## Headers

- `Content-Type` 'application/octet-stream', required
- `Content-SHA256` string, required

## Request body `application/octet-stream`

- string, binary

## Response `201`

Chunk uploaded successfully

## Other responses

- `400`: Bad request

---

[API](https://skmtc.dev/bynder/apis/modern-stack-file-upload.md) - [All operations](https://skmtc.dev/bynder/apis/modern-stack-file-upload/llms.txt) - [OpenAPI document](https://skmtc.dev/bynder/apis/modern-stack-file-upload/revisions/352bdc496dc2?raw)
