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

# Upload submission documents

> Uploads document files to a submission. Files add to the ones already
uploaded.

Send each file as a `multipart/form-data` part named for its document
type, for example one `proofOfResidency` part per residency document. Each
document type attaches to a section of the submission's data, so that
section must already be on the submission.

Each file must be a PDF without a password, or a JPEG, PNG, or WebP
image, at most 100 MB. Scout reads the type from the file's content, not
its name or Content-Type, so convert HEIC photos to JPEG first.

Requires the `enrollment-submissions` scope.




## OpenAPI

````yaml /api-reference/openapi.json post /enrollment/submissions/{enrollmentRecordId}/documents
openapi: 3.1.0
info:
  title: Scout API
  version: 1.0.0
  description: >-
    Programmatic access to Scout rostering data (IMS OneRoster 1.1 & 1.2) and
    related endpoints, authenticated with an API access token.
servers:
  - url: https://api.teachwithscout.com/v1
    description: Production
security: []
tags:
  - name: Access tokens
  - name: Attendance
  - name: Enrollment invitations
  - name: Enrollment submissions
  - name: Master agreements
  - name: Staff associations
  - name: OneRoster 1.1
  - name: OneRoster 1.2
paths:
  /enrollment/submissions/{enrollmentRecordId}/documents:
    post:
      tags:
        - Enrollment submissions
      summary: Upload submission documents
      description: >
        Uploads document files to a submission. Files add to the ones already

        uploaded.


        Send each file as a `multipart/form-data` part named for its document

        type, for example one `proofOfResidency` part per residency document.
        Each

        document type attaches to a section of the submission's data, so that

        section must already be on the submission.


        Each file must be a PDF without a password, or a JPEG, PNG, or WebP

        image, at most 100 MB. Scout reads the type from the file's content, not

        its name or Content-Type, so convert HEIC photos to JPEG first.


        Requires the `enrollment-submissions` scope.
      parameters:
        - in: path
          name: enrollmentRecordId
          required: true
          description: The submission's id.
          schema:
            type: string
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                proofOfBirthDate:
                  type: array
                  description: Attaches to `demographics`.
                  items:
                    type: string
                    format: binary
                proofOfResidency:
                  type: array
                  description: Attaches to `demographics`.
                  items:
                    type: string
                    format: binary
                secondaryProofOfResidency:
                  type: array
                  description: Attaches to `demographics`.
                  items:
                    type: string
                    format: binary
                proofOfWithdrawal:
                  type: array
                  description: Attaches to `previousSchool`.
                  items:
                    type: string
                    format: binary
                proofOf504Plan:
                  type: array
                  description: Attaches to `previousSchool.specialEducationHistory`.
                  items:
                    type: string
                    format: binary
                proofOfIEP:
                  type: array
                  description: Attaches to `previousSchool.specialEducationHistory`.
                  items:
                    type: string
                    format: binary
                transcript:
                  type: array
                  description: Attaches to `previousSchool.previousSchool`.
                  items:
                    type: string
                    format: binary
                immunizationRecord:
                  type: array
                  description: Attaches to `healthConditions`.
                  items:
                    type: string
                    format: binary
                custodyDocument:
                  type: array
                  description: Attaches to `parentGuardian.custodyIssues`.
                  items:
                    type: string
                    format: binary
                proofOfIdentification:
                  type: array
                  description: Attaches to `parentGuardian`.
                  items:
                    type: string
                    format: binary
      responses:
        '200':
          description: The files were uploaded.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                required:
                  - success
        '400':
          description: >
            The upload was rejected and no files were stored. The causes are:


            - the body isn't a valid `multipart/form-data` upload, or has no
            files

            - a part name isn't a document type

            - the section a document attaches to isn't on the submission

            - the district's form doesn't collect a document type
            (`not_collected` in `errors`)

            - a file isn't a PDF, JPEG, PNG, or WebP image
            (`unsupported_file_type` in `errors`)


            Those two are listed in `errors`, with the part name as `path`. For
            the

            others, `message` explains the problem.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    example: 400
                  message:
                    type: string
                  errors:
                    type: array
                    items:
                      $ref: '#/components/schemas/VendorSubmissionFieldError'
        '401':
          description: The access token is missing, invalid, expired, or revoked.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    example: 401
                  error:
                    type: string
                  code:
                    type: string
                    example: INVALID_ACCESS_TOKEN
                required:
                  - status
                  - error
                  - code
        '403':
          description: >-
            The request didn't use an API access token, or the token doesn't
            have the `enrollment-submissions` scope.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  message:
                    type: string
                required:
                  - success
                  - message
        '404':
          description: No submission with this id was created by your API client.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    example: 404
                  message:
                    type: string
        '409':
          description: >-
            The submission can no longer be changed: it's waiting for staff
            review, it's approved, or it was approved before staff sent it back.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    example: 409
                  message:
                    type: string
        '413':
          description: A file is larger than 100 MB.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  message:
                    type: string
                required:
                  - success
                  - message
      security:
        - accessToken: []
components:
  schemas:
    VendorSubmissionFieldError:
      type: object
      description: One problem with a submitted field.
      properties:
        path:
          type: string
          description: >-
            Where the problem is, for example `parentGuardian.parents[0].email`.
            For a document, its type, for example `proofOfResidency`.
        code:
          type: string
          enum:
            - invalid_format
            - unknown_id
            - not_collected
            - invalid_value
            - immutable
            - missing_document_destination
            - unsupported_file_type
            - duplicate_submission
          description: >
            - `invalid_format`: wrong type or format, or over a size limit.

            - `unknown_id`: the id matches nothing in the district.

            - `not_collected`: the district's form doesn't collect this field or
            document. Leave it out.

            - `invalid_value`: the district's form doesn't accept this value.

            - `immutable`: the field can't change after creation. Omit it or
            send the stored value.

            - `missing_document_destination`: documents were uploaded to this
            section, so an update must keep it.

            - `unsupported_file_type`: the file isn't a PDF, JPEG, PNG, or WebP
            image.

            - `duplicate_submission`: an open submission of yours already covers
            this student for the school year. `message` names its id; update and
            finalize that one instead.
        message:
          type: string
      required:
        - path
        - code
        - message
  securitySchemes:
    accessToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Bearer access token from `POST /oauth/token` (OAuth 2.0 client
        credentials; the OneRoster `/ims/oneroster/v1p1/token` and `/v1p2/token`
        URLs are aliases). Send it as `Authorization: Bearer <access_token>`.
        Tokens expire after 1 hour and carry your API client's granted scopes —
        an endpoint outside them returns 403.

````

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