{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/webex/json-schema/webex-apply-line-key-template-job-details-schema.json",
  "title": "ApplyLineKeyTemplateJobDetails",
  "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/ApplyLineKeyTemplateJobDetails",
  "type": "object",
  "required": [
    "name",
    "id",
    "trackingId",
    "sourceUserId",
    "sourceCustomerId",
    "targetCustomerId",
    "instanceId",
    "latestExecutionStatus",
    "percentageComplete",
    "updatedCount",
    "advisoryCount"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Job name."
    },
    "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 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": "#/$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": {
      "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"
    },
    "percentageComplete": {
      "type": "integer",
      "description": "Indicates the progress of the job."
    },
    "updatedCount": {
      "type": "integer",
      "description": "Number of job steps completed."
    },
    "advisoryCount": {
      "type": "integer",
      "description": "Number of job steps completed with advisories."
    }
  },
  "$defs": {
    "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."
        }
      }
    },
    "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."
        }
      }
    }
  }
}