post:
  operationId: importNonEmployeeRecordsInBulk
  security:
    - oauth2: [idn:nelm:manage]
  tags:
    - Non-Employee Lifecycle Management
  summary: Imports, or Updates, Non-Employee Records
  description: >-
    This post will import, or update, Non-Employee records found in the CSV.

    Request will need the following security scope:

    'idn:nesr:create'
  parameters:
    - in: path
      name: id
      description: >-
        Source Id (UUID)
      required: true
      schema:
        type: string
      example: e136567de87e4d029e60b3c3c55db56d
  requestBody:
    content:
      multipart/form-data:
        schema:
          type: object
          properties:
            data:
              type: string
              format: binary
          required:
            - data
  responses:
    '202':
      description: >-
        The CSV was accepted to be bulk inserted now or at a later time.
      content:
        application/json:
          schema:
            $ref: '../../beta/schemas/NonEmployeeBulkUploadJob.yaml'
    '400':
      description: |
        Client Error - Returned if the request body is invalid.
        The response body will contain the list of specific errors with one on each line.
      content:
        application/json:
          schema:
            $ref: '../../v3/schemas/ErrorResponseDto.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'
