> ## 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 delegate for a report

> Assign a user or a staff group as a delegate for the report. Provide exactly one of `user` (user ID) or `group` (staff group ID). Report delegation must be enabled for the practice (FaxDelegateModal or ReportQueueDelegate). For group delegation, StaffGroupDelegates must be enabled.



## OpenAPI

````yaml post /api/2.0/reports/{id}/delegates/
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/reports/{id}/delegates/:
    post:
      tags:
        - Reports
      summary: Create a delegate for a report
      description: >-
        Assign a user or a staff group as a delegate for the report. Provide
        exactly one of `user` (user ID) or `group` (staff group ID). Report
        delegation must be enabled for the practice (FaxDelegateModal or
        ReportQueueDelegate). For group delegation, StaffGroupDelegates must be
        enabled.
      operationId: reports_delegates_create
      parameters:
        - description: The report ID.
          in: path
          name: id
          required: true
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RoutedDocumentDelegate'
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RoutedDocumentDelegate'
          description: ''
        '400':
          content:
            application/json:
              schema:
                additionalProperties: {}
                type: object
          description: ''
        '403':
          content:
            application/json:
              schema:
                additionalProperties: {}
                type: object
          description: ''
        '404':
          content:
            application/json:
              schema:
                additionalProperties: {}
                type: object
          description: ''
      security:
        - oauth2: []
components:
  schemas:
    RoutedDocumentDelegate:
      description: >-
        Nested serializer for RoutedDocumentDelegate.


        Returns delegation information for users and groups assigned to review a
        report.

        Either user or group will be populated, but not both.
      properties:
        created_date:
          format: date-time
          readOnly: true
          type:
            - string
            - 'null'
        deleted_date:
          format: date-time
          readOnly: true
          type:
            - string
            - 'null'
        group:
          description: ID of the delegated group. Null if this is a user delegation.
          type:
            - integer
            - 'null'
        id:
          readOnly: true
          type: integer
        user:
          description: ID of the delegated user. Null if this is a group delegation.
          type:
            - integer
            - 'null'
      type: object
  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

````