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

# Upload Chunk

> Upload a single chunk of a large file.



## OpenAPI

````yaml /api-reference/openapi.json post /api/files/upload-chunk
openapi: 3.1.0
info:
  title: apowerb API
  description: REST API of the apowerb agentic framework (open-source edition).
  version: 0.1.2
  license:
    name: MIT
    url: https://github.com/apowerb/apowerb/blob/main/LICENSE
servers:
  - url: https://api.example.com
    description: Your apowerb instance
  - url: http://localhost:8000
    description: Local stack
security: []
paths:
  /api/files/upload-chunk:
    post:
      tags:
        - files
      summary: Upload Chunk
      description: Upload a single chunk of a large file.
      operationId: upload_chunk_api_files_upload_chunk_post
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/Body_upload_chunk_api_files_upload_chunk_post
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    Body_upload_chunk_api_files_upload_chunk_post:
      properties:
        upload_id:
          type: string
          title: Upload Id
        agent_id:
          type: string
          title: Agent Id
        chunk_index:
          type: integer
          title: Chunk Index
        total_chunks:
          type: integer
          title: Total Chunks
        filename:
          type: string
          title: Filename
        chunk:
          type: string
          contentMediaType: application/octet-stream
          title: Chunk
      type: object
      required:
        - upload_id
        - agent_id
        - chunk_index
        - total_chunks
        - filename
        - chunk
      title: Body_upload_chunk_api_files_upload_chunk_post
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

## Related topics

- [Upload Complete](/api-reference/files/upload-complete.md)
- [Upload File](/api-reference/files/upload-file.md)
- [Upload a CSV file for BI analysis](/api-reference/bi-upload/upload-a-csv-file-for-bi-analysis.md)
- [SSE streaming](/guides/streaming.md)
- [Delete an uploaded dataset](/api-reference/bi-datasets/delete-an-uploaded-dataset.md)
