post:
  security:
   - oauth2: [idn:nelm:manage]
  operationId: nonEmployeeBulkUploadJobFail
  tags:
    - Non-Employee Lifecycle Management
  summary: Fail Bulk Upload
  description: |
    This API does not stop the job. It flags the job as failed. The job continues to run if it was 
    running when the API was invoked.

    Before you submit this request, verify the transaction is actually failed in Kibana. When 
    the NON_EMPLOYEE_CREATE_PASSED events have stopped, then the job is completed.

    Important: This API does not stop the job, it flags the job as failed. The job continues to run if 
    the it was running when the API was invoked. If invoked while the transaction is still running, 
    other jobs are allowed to start but the second job to start will fail.

    A token with idn:nesr:update authority is required to call this API.

    This is for internal use only.
  parameters:
    - in: path
      name: bulkUploadJobId
      description: >-
        Bulk Upload Job ID (UUID)
      required: true
      schema:
        type: string
  responses:
    '200':
      description: >-
        The bulk upload job was marked as failed.
      content:
        application/json:
          schema:
            $ref: '../../beta/schemas/NonEmployeeBulkUploadJob.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'
