post:
  operationId: createNonEmployeeRecord
  security:
    - oauth2: [idn:nelm:manage]
  tags:
    - Non-Employee Lifecycle Management
  summary: Create Non-Employee Record
  description: >-
    This request will create a non-employee record.

    Request will require the following security scope:

    'idn:nesr:create'

  requestBody:
    description: Non-Employee record creation request body.
    required: true
    content:
      application/json:
        schema:
          $ref: "../schemas/NonEmployeeRequestBody.yaml"
  responses:
    "200":
      description: Created non-employee record.
      content:
        application/json:
          schema:
            $ref: "../schemas/NonEmployeeRecord.yaml"
    "400":
      $ref: "../../v3/responses/400.yaml"
    "401":
      $ref: "../../v3/responses/401.yaml"
    "403":
      $ref: "../../v3/responses/403.yaml"
    "429":
      $ref: "../../v3/responses/429.yaml"
    "500":
      $ref: "../../v3/responses/500.yaml"
get:
  operationId: listNonEmployeeRecords
  security:
    - oauth2: [idn:nelm:read]
  tags:
    - Non-Employee Lifecycle Management
  summary: List Non-Employee Records
  description: >-
    This gets a list of non-employee records.
  parameters:
    - $ref: "../../v3/parameters/limit.yaml"
    - $ref: "../../v3/parameters/offset.yaml"
    - $ref: "../../v3/parameters/count.yaml"
    - in: query
      required: false
      name: sorters
      schema:
        type: string
        format: comma-separated
      example: accountName,sourceId
      description: >-
        Sort results using the standard syntax described in [V3 API Standard
        Collection
        Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results)
        Sorting is supported for the following fields: **id, accountName,
        sourceId, manager, firstName, lastName, email, phone, startDate,
        endDate, created, modified**
    - in: query
      name: filters
      required: false
      schema:
        type: string
      example: sourceId eq "2c91808568c529c60168cca6f90c1313"
      description: >-
        Filter results using the standard syntax described in [V3 API Standard
        Collection
        Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results)
        Filtering is supported for the following fields and operators:
        **sourceId**: *eq*  *Example:* sourceId eq
        "2c91808568c529c60168cca6f90c1313"
  responses:
    "200":
      description: Non-Employee record objects
      content:
        application/json:
          schema:
            type: array
            items:
              $ref: "../schemas/NonEmployeeRecord.yaml"
    "400":
      $ref: "../../v3/responses/400.yaml"
    "401":
      $ref: "../../v3/responses/401.yaml"
    "403":
      $ref: "../../v3/responses/403.yaml"
    "429":
      $ref: "../../v3/responses/429.yaml"
    "500":
      $ref: "../../v3/responses/500.yaml"
