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

# Upload document(s) for a reimbursement rate

> Upload one or more files as supporting documents for a reimbursement rate.



## OpenAPI

````yaml /openapi/reimbursement/rates/openapi.yaml post /v1/{id}/documents
openapi: 3.0.3
info:
  title: Reimbursement Rates
  description: API for managing reimbursement rates.
  version: '0.1'
servers:
  - url: https://api.spirii.com/reimbursement/rates
security:
  - BearerAuth: []
tags:
  - name: Reimbursement Rates
    description: Operations related to reimbursement rates.
paths:
  /v1/{id}/documents:
    post:
      tags:
        - Reimbursement Rates
      summary: Upload document(s) for a reimbursement rate
      description: >-
        Upload one or more files as supporting documents for a reimbursement
        rate.
      operationId: uploadRateDocuments
      parameters:
        - name: id
          in: path
          required: true
          description: ID of the reimbursement rate to add documents to.
          schema:
            type: integer
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                files:
                  type: array
                  items:
                    type: string
                    format: binary
              required:
                - files
            encoding:
              files:
                style: form
                explode: false
      responses:
        '200':
          description: Uploaded rate documents
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/RateDocumentResponse'
        '400':
          description: Invalid or missing file attachment.
        '401':
          description: Missing or invalid authorization token.
        '403':
          description: Access to the requested resource is not permitted.
        '404':
          description: Reimbursement rate not found.
components:
  schemas:
    RateDocumentResponse:
      type: object
      properties:
        id:
          type: integer
          description: Unique document identifier.
        originalFilename:
          type: string
          description: Name of the uploaded file.
        fileSize:
          type: integer
          description: Size of the file in bytes.
        mimeType:
          type: string
          description: MIME type of the file.
        url:
          type: string
          description: Pre-signed download URL, valid for 5 minutes.
      required:
        - id
        - originalFilename
        - fileSize
        - mimeType
        - url
  securitySchemes:
    BearerAuth:
      scheme: bearer
      bearerFormat: JWT
      description: Authorization via a JWT bearer token.
      type: http

````

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