{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nice/json-schema/nice-job-response-schema.json",
  "title": "jobResponse",
  "description": "Displays the job status.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nice-dataextraction-dataextraction-openapi.yml#/components/schemas/jobResponse",
  "type": "object",
  "properties": {
    "jobStatus": {
      "$ref": "#/$defs/jobStatus"
    }
  },
  "$defs": {
    "jobResult": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "A url to access the extracted data is returned when a job for extracting data is successful."
        },
        "errorMessage": {
          "type": "string",
          "description": "Error message displayed when a request for extracting data fails."
        }
      },
      "description": "Job result. If successful, contains the url, if failed, an error message is displayed."
    },
    "jobStatus": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier of the job.",
          "format": "uuid"
        },
        "status": {
          "type": "string",
          "description": "Job status that can be returned.",
          "enum": [
            "RUNNING",
            "SUCCEEDED",
            "FAILED",
            "CANCELLED",
            "EXPIRED"
          ]
        },
        "result": {
          "$ref": "#/$defs/jobResult"
        }
      },
      "description": "Job Status, includes job ID and job status."
    }
  }
}