> ## Documentation Index
> Fetch the complete documentation index at: https://apidoc.client.fo/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload a chunk

> Step 2 of 3. Send each chunk, numbered from 0.

**Required permission:** `publishing:media:write`



## OpenAPI

````yaml /api-reference/publishing.openapi.json post /{workspace}/media/chunked/{upload}/upload
openapi: 3.1.0
info:
  title: Publishing API
  version: 1.0.0
  description: >-
    Social accounts, posts, scheduling, approval, tags and media for one
    workspace.
servers:
  - url: https://{domain}/os/api
    description: Your platform domain
    variables:
      domain:
        default: app.example.com
        description: The domain you sign in to, without https://
security:
  - bearerAuth: []
  - apiKeyHeader: []
tags:
  - name: Diagnostics
  - name: Accounts
  - name: Posts
  - name: Media
  - name: Tags
paths:
  /{workspace}/media/chunked/{upload}/upload:
    post:
      tags:
        - Media
      summary: Upload a chunk
      description: |-
        Step 2 of 3. Send each chunk, numbered from 0.

        **Required permission:** `publishing:media:write`
      operationId: media.chunked.upload
      parameters:
        - name: workspace
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Your workspace UUID. Must match the API key's workspace.
        - name: upload
          in: path
          required: true
          schema:
            type: string
          description: The `upload_uuid` from step 1.
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - chunk
                - chunk_index
              properties:
                chunk:
                  type: string
                  format: binary
                chunk_index:
                  type: integer
      responses:
        '200':
          description: Success
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'A workspace API key: `Authorization: Bearer osk_...`'
    apiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
      description: The same workspace API key in the `x-api-key` header.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.