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

    Request will require the following security scope:

    'idn:nesr:create'
  requestBody:
    description: Non-Employee source creation request body.
    required: true
    content:
      application/json:
        schema:
          $ref: '../schemas/NonEmployeeSourceRequestBody.yaml'
  responses:
    '200':
      description: Created non-employee source.
      content:
        application/json:
          schema:
            $ref: '../schemas/NonEmployeeSourceWithCloudExternalId.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: nonEmployeeSourcesList
  security:
    - oauth2: [idn:nelm:read]
  tags:
    - Non-Employee Lifecycle Management
  summary: List Non-Employee Sources
  description: >-
    This gets a list of non-employee sources.
  parameters:
    - $ref: '../../v3/parameters/limit.yaml'
    - $ref: '../../v3/parameters/offset.yaml'
    - $ref: '../../v3/parameters/count.yaml'
    - in: query
      required: true
      name: requested-for
      example: me
      schema:
        type: string
      description: >-
        The identity for whom the request was made. *me* indicates the current user.
    - in: query
      required: true
      name: non-employee-count
      example: false
      schema:
        type: boolean
      description: >-
        The flag to determine whether return a non-employee count associate with source.
    - in: query
      name: sorters
      required: false
      schema:
        type: string
        format: comma-separated
      example: name,created
      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)<br/><br/>
        Sorting is supported for the following fields: **name, created**
  responses:
    '200':
      description: List of non-employee sources objects.
      content:
        application/json:
          schema:
            type: array
            items:
              $ref: '../schemas/NonEmployeeSourceWithNECount.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'