{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/webex/json-schema/webex-start-job-response-schema.json",
  "title": "StartJobResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/webex-device-call-settings-api-openapi.yml#/components/schemas/StartJobResponse",
  "type": "object",
  "required": [
    "name",
    "id",
    "jobType",
    "trackingId",
    "sourceUserId",
    "sourceCustomerId",
    "targetCustomerId",
    "instanceId",
    "latestExecutionStatus",
    "operationType",
    "sourceLocationId",
    "targetLocationId",
    "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 of the organization that initiated the job."
    },
    "targetCustomerId": {
      "type": "string",
      "description": "Unique identifier of the organization for which the job was run."
    },
    "instanceId": {
      "type": "integer",
      "description": "Unique identifier to identify the instance of the job."
    },
    "jobExecutionStatus": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/JobExecutionStatusObject1"
      },
      "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",
      "enum": [
        "STARTING",
        "STARTED",
        "COMPLETED",
        "FAILED",
        "UNKNOWN",
        "ABANDONED"
      ],
      "description": "Most recent status of the job at the time of invocation.\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"
    },
    "latestExecutionExitCode": {
      "type": "string",
      "enum": [
        "UNKNOWN",
        "COMPLETED",
        "FAILED",
        "STOPPED",
        "COMPLETED_WITH_ERRORS",
        "COMPLETED_WITH_PENDING_ORDERS"
      ],
      "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 * `COMPLETED_WITH_PENDING_ORDERS` - Job has completed with pending number orders.\n"
    },
    "operationType": {
      "type": "string",
      "description": "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."
    },
    "counts": {
      "$ref": "#/$defs/CountObject",
      "description": "Job statistics."
    }
  },
  "$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."
        }
      }
    },
    "JobExecutionStatusObject1": {
      "type": "object",
      "required": [
        "id",
        "lastUpdated",
        "statusMessage",
        "createdTime",
        "timeElapsed"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "description": "Unique identifier that identifies each instance of the job."
        },
        "lastUpdated": {
          "type": "string",
          "description": "Last updated time (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": "Job creation time in UTC format."
        },
        "timeElapsed": {
          "type": "string",
          "description": "Time lapsed since the job execution started."
        }
      }
    }
  }
}