{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/webex/json-schema/webex-call-recording-job-status-schema.json",
  "title": "CallRecordingJobStatus",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/webex-features-call-recording-api-openapi.yml#/components/schemas/CallRecordingJobStatus",
  "type": "object",
  "required": [
    "id",
    "trackingId",
    "sourceUserId",
    "sourceCustomerId",
    "targetCustomerId",
    "instanceId",
    "latestExecutionStatus",
    "vendorId",
    "counts"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of the job."
    },
    "id": {
      "type": "string",
      "description": "Unique identifier of the job."
    },
    "trackingId": {
      "type": "string",
      "description": "Unique identifier to track the flow of HTTP requests."
    },
    "sourceUserId": {
      "type": "string",
      "description": "Unique identifier of the user who has run the job."
    },
    "sourceCustomerId": {
      "type": "string",
      "description": "Unique identifier of the customer who has run the job."
    },
    "targetCustomerId": {
      "type": "string",
      "description": "Unique identifier of 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": "#/$defs/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": {
      "description": "Most recent status of the job at the time of invocation.",
      "allOf": [
        {
          "$ref": "#/$defs/LatestExecutionStatus"
        }
      ]
    },
    "locationId": {
      "type": "string",
      "description": "Unique identifier of a location."
    },
    "vendorId": {
      "type": "string",
      "description": "Unique identifier of a vendor."
    },
    "counts": {
      "description": "Job statistics.",
      "allOf": [
        {
          "$ref": "#/$defs/CountObject"
        }
      ]
    }
  },
  "$defs": {
    "CountObject": {
      "type": "object",
      "required": [
        "totalMoves",
        "moved",
        "failed",
        "pending",
        "skipped"
      ],
      "properties": {
        "totalMoves": {
          "type": "number",
          "description": "Total number of user moves requested."
        },
        "moved": {
          "type": "number",
          "description": "Total number of user moves completed successfully."
        },
        "failed": {
          "type": "number",
          "description": "Total number of user moves that were completed with failures."
        },
        "pending": {
          "type": "number",
          "description": "Total number of user moves that were pending with number orders."
        },
        "skipped": {
          "type": "number",
          "description": "Total number of user moves that were skipped."
        }
      }
    },
    "JobExecutionStatusObject": {
      "type": "object",
      "required": [
        "id",
        "lastUpdated",
        "statusMessage",
        "createdTime",
        "timeElapsed"
      ],
      "properties": {
        "id": {
          "type": "number",
          "description": "Unique identifier that identifies each instance of the job."
        },
        "startTime": {
          "type": "string",
          "description": "The date and time with seconds, the job has started in UTC format."
        },
        "endTime": {
          "type": "string",
          "description": "The date and time with seconds, the job has ended in UTC format."
        },
        "lastUpdated": {
          "type": "string",
          "description": "The date and time with seconds, the job has last updated in UTC format post one of the step execution completion."
        },
        "statusMessage": {
          "type": "string",
          "enum": [
            "STARTING",
            "STARTED",
            "COMPLETED",
            "FAILED",
            "UNKNOWN",
            "ABANDONED"
          ],
          "description": "Displays status for overall steps that are part of the job.\n * `STARTING` - Job has started.\n * `STARTED` - Job is in progress.\n * `COMPLETED` - Job has completed.\n * `FAILED` - Job has failed.\n * `UNKNOWN` - Job status is unknown.\n * `ABANDONED` - Job has been abandoned (manually stopped).\n"
        },
        "exitCode": {
          "type": "string",
          "enum": [
            "UNKNOWN",
            "COMPLETED",
            "FAILED",
            "STOPPED",
            "COMPLETED_WITH_ERRORS",
            "COMPLETED_WITH_PENDING_ORDERS"
          ],
          "description": "Exit Code for a job.\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 * `COMPLETED_WITH_PENDING_ORDERS` - Job has completed with pending number orders.\n"
        },
        "createdTime": {
          "type": "string",
          "description": "The date and time with seconds, the job has created in UTC format."
        },
        "timeElapsed": {
          "type": "string",
          "description": "Time lapsed in seconds since the job execution started."
        },
        "stepExecutionStatuses": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/stepExecutionStatusesObject"
          },
          "description": "Status of each step within a job."
        }
      }
    },
    "LatestExecutionStatus": {
      "type": "string",
      "enum": [
        "STARTING",
        "STARTED",
        "COMPLETED",
        "FAILED"
      ],
      "description": " * `STARTING` - Job has started.\n * `STARTED` - Job is in progress.\n * `COMPLETED` - Job has been completed.\n * `FAILED` - Job has failed.\n"
    },
    "stepExecutionStatusesObject": {
      "type": "object",
      "required": [
        "id",
        "lastUpdated",
        "statusMessage",
        "name",
        "timeElapsed"
      ],
      "properties": {
        "id": {
          "type": "number",
          "description": "Unique identifier that identifies each step in a job."
        },
        "startTime": {
          "type": "string",
          "description": "The date and time with seconds, the step execution has started in UTC format."
        },
        "endTime": {
          "type": "string",
          "description": "The date and time with seconds, the step execution has ended in UTC format."
        },
        "lastUpdated": {
          "type": "string",
          "description": "The date and time with seconds, the step has last updated in UTC format."
        },
        "statusMessage": {
          "type": "string",
          "enum": [
            "STARTING",
            "STARTED",
            "COMPLETED",
            "FAILED",
            "UNKNOWN",
            "ABANDONED"
          ],
          "description": "Displays status for a step.\n * `STARTING` - Job has started.\n * `STARTED` - Job is in progress.\n * `COMPLETED` - Job has completed.\n * `FAILED` - Job has failed.\n * `UNKNOWN` - Job status is unknown.\n * `ABANDONED` - Job has been abandoned (manually stopped).\n"
        },
        "exitCode": {
          "type": "string",
          "enum": [
            "UNKNOWN",
            "COMPLETED",
            "FAILED",
            "STOPPED",
            "COMPLETED_WITH_ERRORS",
            "COMPLETED_WITH_PENDING_ORDERS"
          ],
          "description": "Exit Code for a step.\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 * `COMPLETED_WITH_PENDING_ORDERS` - Job has completed with pending number orders.\n"
        },
        "name": {
          "type": "string",
          "description": "Step name."
        },
        "timeElapsed": {
          "type": "string",
          "description": "Time lapsed in seconds since the job execution started."
        }
      }
    }
  }
}