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

# Post Submission



## OpenAPI

````yaml /api-reference/openapi.json post /consortium/submissions
openapi: 3.1.0
info:
  title: baselayer-api-service
  version: 0.1.0
servers:
  - url: https://api.baselayer.com/
security: []
paths:
  /consortium/submissions:
    post:
      tags:
        - Consortium
      summary: Post Submission
      operationId: post_submission_consortium_submissions_post
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/Body_post_submission_consortium_submissions_post
      responses:
        '202':
          description: Submission accepted for processing.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmissionResponse'
        '400':
          description: >-
            Invalid request due to missing required headers or invalid file
            format.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
                title: InvalidCSVHeaders
                description: >-
                  Cannot process CSV file due to missing required headers.
                  Please ensure your CSV includes all required headers.
                examples:
                  - code: 600
                    message: >-
                      Cannot process CSV file due to missing required headers.
                      Please ensure your CSV includes all required headers.
                    metadata: {}
        '422':
          description: CSV contains valid headers but no valid data rows.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
                title: InvalidCSVData
                description: >-
                  Cannot process CSV file due to invalid data. Please ensure
                  your CSV data is valid.
                examples:
                  - code: 601
                    message: >-
                      Cannot process CSV file due to invalid data. Please ensure
                      your CSV data is valid.
                    metadata: {}
      security:
        - APIKeyHeader: []
components:
  schemas:
    Body_post_submission_consortium_submissions_post:
      properties:
        file:
          type: string
          contentMediaType: application/octet-stream
          title: File
      type: object
      required:
        - file
      title: Body_post_submission_consortium_submissions_post
    SubmissionResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
          description: The unique identifier of the submission
        name:
          type: string
          title: Name
          description: The name of the submission file
        state:
          $ref: '#/components/schemas/TaskState'
          description: The current processing state of the submission
        submitted_records:
          type: integer
          title: Submitted Records
          description: Total number of records submitted
        valid_records:
          type: integer
          title: Valid Records
          description: Number of valid records
        created_at:
          type: string
          format: date-time
          title: Created At
          description: When the submission was created
      type: object
      required:
        - id
        - name
        - state
        - submitted_records
        - valid_records
        - created_at
      title: SubmissionResponse
    APIError:
      properties:
        code:
          type: integer
          title: Code
        message:
          type: string
          title: Message
        uri:
          anyOf:
            - type: string
            - type: 'null'
          title: Uri
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
      type: object
      required:
        - code
        - message
      title: APIError
      description: >-
        APIError is a Pydantic model for standardizing error responses from the
        API.


        This class is used internally by APIException for JSON serialization.

        Users should typically work with APIException directly in exception
        catalogs.
    TaskState:
      enum:
        - PENDING
        - EXECUTING
        - COMPLETED
        - FAILED
        - CANCELLED
      title: TaskState
      type: string
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key

````