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

# Complete File Upload

> Mark a file upload as complete and update metadata.

Call this endpoint after successfully uploading a file using the presigned URL
from the `/upload/{filename}` endpoint to finalize the upload process.

**Parameters:**
- **file_id**: The file ID returned from the initial upload request

**Optional Request Body:**
```json
{
    "size": 1048576  // File size in bytes
}
```

**Response:**
- Upload completion status
- Final file metadata
- Upload timestamp



## OpenAPI

````yaml openapi.json post /upload/{file_id}/complete
openapi: 3.1.0
info:
  title: Nano Helix API
  description: Protein AI model API platform.
  contact:
    name: Nano Helix Support
    email: support@nanohelix.ai
  license:
    name: Commercial License
  version: 1.0.0
servers: []
security: []
paths:
  /upload/{file_id}/complete:
    post:
      tags:
        - File Management
      summary: Complete File Upload
      description: >-
        Mark a file upload as complete and update metadata.


        Call this endpoint after successfully uploading a file using the
        presigned URL

        from the `/upload/{filename}` endpoint to finalize the upload process.


        **Parameters:**

        - **file_id**: The file ID returned from the initial upload request


        **Optional Request Body:**

        ```json

        {
            "size": 1048576  // File size in bytes
        }

        ```


        **Response:**

        - Upload completion status

        - Final file metadata

        - Upload timestamp
      operationId: complete_upload_upload__file_id__complete_post
      parameters:
        - name: file_id
          in: path
          required: true
          schema:
            type: string
            title: File Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    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
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````