{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/jobIdResponseObject",
  "title": "jobIdResponseObject",
  "type": "object",
  "required": [
    "name",
    "id",
    "jobType",
    "trackingId",
    "sourceUserId",
    "sourceCustomerId",
    "targetCustomerId",
    "instanceId",
    "latestExecutionStatus",
    "operationType",
    "sourceLocationId",
    "targetLocationId",
    "sourceLocationName",
    "targetLocationName",
    "counts"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Job name."
    },
    "id": {
      "type": "string",
      "description": "Unique identifier of the job."
    },
    "jobType": {
      "type": "string",
      "description": "Job type."
    },
    "trackingId": {
      "type": "string",
      "description": "Unique identifier to track the flow of HTTP requests."
    },
    "sourceUserId": {
      "type": "string",
      "description": "Unique identifier to identify which user has run the job."
    },
    "sourceCustomerId": {
      "type": "string",
      "description": "Unique identifier to identify the customer who has run the job."
    },
    "targetCustomerId": {
      "type": "string",
      "description": "Unique identifier to identify the customer for which the job was run."
    },
    "instanceId": {
      "type": "number",
      "description": "Unique identifier to identify the instance of the job."
    },
    "jobExecutionStatus": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/JobExecutionStatusObject"
      },
      "description": "Displays the most recent step's execution status. Contains execution statuses of all the steps involved in the execution of the job."
    },
    "latestExecutionStatus": {
      "type": "string",
      "description": "Indicates the most recent status (STARTING, STARTED, COMPLETED, FAILED) of the job at the time of invocation."
    },
    "latestExecutionExitCode": {
      "type": "string",
      "enum": [
        "UNKNOWN",
        "COMPLETED",
        "FAILED",
        "STOPPED",
        "COMPLETED_WITH_ERRORS"
      ],
      "description": "Most recent exit code of the job at the time of invocation.\n * `UNKNOWN` - Job is in progress.\n * `COMPLETED` - Job has completed successfully.\n * `FAILED` - Job has failed.\n * `STOPPED` - Job has been stopped.\n * `COMPLETED_WITH_ERRORS` - Job has completed with errors.\n"
    },
    "operationType": {
      "type": "string",
      "description": "Indicates the operation type that was carried out."
    },
    "sourceLocationId": {
      "type": "string",
      "description": "Unique location identifier for which the job was run."
    },
    "targetLocationId": {
      "type": "string",
      "description": "Unique location identifier for which the numbers have been moved."
    },
    "sourceLocationName": {
      "type": "string",
      "description": "The location name for which the job was run."
    },
    "targetLocationName": {
      "type": "string",
      "description": "The location name for which the numbers have been moved."
    },
    "counts": {
      "$ref": "#/components/schemas/CountObject",
      "description": "Job statistics."
    }
  }
}