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

# Create a new incoming file

> Create a new incoming file for a patient



## OpenAPI

````yaml post /api/2.0/patients/{id}/incoming_files/
openapi: 3.1.0
info:
  contact:
    name: Elation Health
    url: https://www.elationhealth.com/
  description: Elation Health API v2.0
  title: Patient Document API
  version: 2.0.0
servers:
  - description: Sandbox Server
    url: https://sandbox.elationemr.com
  - description: Production Server
    url: https://api.app.elationemr.com
security: []
paths:
  /api/2.0/patients/{id}/incoming_files/:
    post:
      tags:
        - Incoming Files
      summary: Create a new incoming file
      description: Create a new incoming file for a patient
      operationId: patients_incoming_files_create
      parameters:
        - description: The ID of the patient
          in: path
          name: id
          required: true
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              properties:
                custom_title:
                  description: Custom title for the document
                  type: string
                document_date:
                  description: Document date (defaults to current datetime)
                  format: date-time
                  type: string
                document_tags:
                  description: Array of document tags
                  items:
                    type: string
                  type: array
                document_type:
                  description: Type of document (cannot be 'Lab')
                  type: string
                files:
                  description: Array of file IDs
                  items:
                    type: integer
                  type: array
                import_history:
                  default: false
                  description: Whether to import history
                  type: boolean
                reviewer_user:
                  description: User ID of the reviewer
                  type: integer
                sign_off:
                  default: false
                  description: Whether to sign off the document
                  type: boolean
                urgent:
                  default: false
                  description: Whether the document is urgent
                  type: boolean
              required:
                - files
                - document_type
              type: object
      responses:
        '201':
          description: No response body
      security:
        - oauth2: []
components:
  securitySchemes:
    oauth2:
      flows:
        clientCredentials:
          scopes:
            act_as_user: >-
              Impersonate a provider via X-On-Behalf-Of (combinable with apiv2
              or system scopes)
            apiv2: Full access to the API
            system/{resource_name}.read: Read access to a specific resource
            system/{resource_name}.write: Write access to a specific resource
          tokenUrl: /api/2.0/oauth2/token/
      type: oauth2

````