get:
  operationId: nonEmployeeRecordsExport
  security:
    - oauth2: [idn:nelm:read]
  tags:
    - Non-Employee Lifecycle Management
  summary: Exports Non-Employee Records to CSV
  description: >-
    This requests a CSV download for all non-employees from a provided source.

    Request will need the following security scope:

    'idn:nesr:read'
  parameters:
    - in: path
      example: "2c918085842e69ae018432d22ccb212f"
      name: id
      description: >-
        Source Id (UUID)
      required: true
      schema:
        type: string
  responses:
    '200':
      description: Exported CSV
      content:
        text/csv:
          example: |
            accountName,firstName,lastName,phone,email,manager,startDate,endDate
            Jon.Smith, Jon, Smith, 555-555-5555, jon@jon.doe.nope.com, Jim Smith, 2020-04-05T08:00:00-10:00,2020-08-07T19:00:00-10:00
            William.Chaffin, William, Chaffin, 555-555-5555, william@chaffins.nope.com, Bertram Chaffin, 2020-04-05T08:00:00-10:00,2020-08-07T19:00:00-10:00
    '400':
      $ref: '../../v3/responses/400.yaml'
    '401':
      $ref: '../../v3/responses/401.yaml'
    '403':
      $ref: '../../v3/responses/403.yaml'
    '404':
      $ref: '../../v3/responses/404.yaml'
    '429':
      $ref: '../../v3/responses/429.yaml'
    '500':
      $ref: '../../v3/responses/500.yaml'
