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

# Multipart Complete

> Complete a multipart upload. Client must call /finalize next to confirm.



## OpenAPI

````yaml /openapi/mio-openapi.json post /api/v1/teams/{team_id}/files/{id}/multipart/{upload_id}/complete
openapi: 3.1.0
info:
  description: >-
    Production API reference for Membership.io. Use the authored guides for
    workflows and the generated endpoint pages for exact parameters and schemas.
  title: Membership.io API
  version: 0.1.0
servers:
  - description: Production
    url: https://api.member.dev
security:
  - bearerAuth: []
paths:
  /api/v1/teams/{team_id}/files/{id}/multipart/{upload_id}/complete:
    post:
      tags:
        - media-admin
      summary: Multipart Complete
      description: Complete a multipart upload. Client must call /finalize next to confirm.
      operationId: >-
        media_admin.post_media_admin_post_teams_by_team_id_files_by_id_multipart_by_upload_id_complete
      parameters:
        - in: path
          name: team_id
          required: true
          schema:
            title: Team Id
            type: string
        - in: path
          name: id
          required: true
          schema:
            title: Id
            type: string
        - in: path
          name: upload_id
          required: true
          schema:
            title: Upload Id
            type: string
      requestBody:
        content:
          application/vnd.api+json:
            schema:
              $ref: '#/components/schemas/MultipartCompleteRequest'
        required: true
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    MultipartCompleteRequest:
      description: Request body for POST /files/{id}/multipart/{upload_id}/complete.
      properties:
        parts:
          items:
            $ref: '#/components/schemas/MultipartPart'
          title: Parts
          type: array
      required:
        - parts
      title: MultipartCompleteRequest
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    MultipartPart:
      properties:
        etag:
          description: ETag returned by S3 for this part.
          title: Etag
          type: string
        part_number:
          description: Part number (1-based).
          maximum: 2147483647
          minimum: 1
          title: Part Number
          type: integer
      required:
        - part_number
        - etag
      title: MultipartPart
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT or mio_sk API key
      description: >-
        Send platform JWTs, contact JWTs, or team API keys as `Authorization:
        Bearer <token>`.
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````