{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/webex/json-schema/webex-dynamic-device-settings-job-list-response-schema.json",
  "title": "DynamicDeviceSettingsJobListResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/webex-device-call-settings-with-device-dynamic-settings-api-openapi.yml#/components/schemas/DynamicDeviceSettingsJobListResponse",
  "type": "object",
  "required": [
    "items"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PostDynamicDeviceSettingsJobResponse"
      },
      "description": "Lists all jobs for the customer of type `dynamicdevicesettings` in order of most recent one to oldest one irrespective of its status."
    }
  },
  "$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."
        }
      }
    },
    "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"
    },
    "PostDynamicDeviceSettingsJobResponse": {
      "type": "object",
      "required": [
        "name",
        "id",
        "trackingId",
        "sourceUserId",
        "sourceCustomerId",
        "targetCustomerId",
        "instanceId",
        "jobExecutionStatus",
        "latestExecutionStatus",
        "latestExecutionExitCode",
        "target",
        "percentageComplete"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the job which in this case, is `dynamicdevicesettings`."
        },
        "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": {
          "$ref": "#/$defs/LatestExecutionStatus"
        },
        "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"
        },
        "target": {
          "type": "string",
          "enum": [
            "CUSTOMER",
            "LOCATION"
          ],
          "description": "Indicates the target entity."
        },
        "locationId": {
          "type": "string",
          "description": "Unique identifier of a location."
        },
        "locationName": {
          "type": "string",
          "description": "Name of the location. Included only when `target` is `LOCATION`."
        },
        "percentageComplete": {
          "type": "integer",
          "description": "Indicates the progress of the 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."
        }
      }
    }
  }
}