{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/PostDynamicDeviceSettingsJobResponse",
  "title": "PostDynamicDeviceSettingsJobResponse",
  "type": "object",
  "required": [
    "name",
    "id",
    "trackingId",
    "sourceUserId",
    "sourceCustomerId",
    "targetCustomerId",
    "instanceId",
    "jobExecutionStatus",
    "latestExecutionStatus",
    "latestExecutionExitCode",
    "target",
    "percentageComplete"
  ],
  "example": {
    "name": "dynamicdevicesettings",
    "id": "Y2lzY29zcGFyazovL3VzL0pPQl9JRC8wNjZkOTQzNC1kODEyLTQzODItODVhMC00MjBlOTFlODg3ZTY",
    "trackingId": "ROUTERGW_1d458245-ee34-48c8-8ed6-92ea16ed48aa",
    "sourceUserId": "Y2lzY29zcGFyazovL3VzL1BFT1BMRS81MDRhZmQ1YS0zODRiLTQ0NjYtYTJlNC05Y2ExZjUwMDRlYWQ",
    "sourceCustomerId": "Y2lzY29zcGFyazovL3VzL09SR0FOSVpBVElPTi9lYTRiZTEyNS00Y2ZjLTQ5OTItOGMwNi00Y2U4Mzc2ZDU4MmE",
    "targetCustomerId": "Y2lzY29zcGFyazovL3VzL09SR0FOSVpBVElPTi9lYTRiZTEyNS00Y2ZjLTQ5OTItOGMwNi00Y2U4Mzc2ZDU4MmE",
    "instanceId": 428989,
    "jobExecutionStatus": [
      {
        "id": 0,
        "startTime": "2025-05-13T10:59:44.106Z",
        "lastUpdated": "2025-05-13T10:59:44.106Z",
        "statusMessage": "STARTED",
        "exitCode": "UNKNOWN",
        "createdTime": "2025-05-13T10:50:01.352Z",
        "timeElapsed": "PT11.476S"
      }
    ],
    "latestExecutionStatus": "STARTED",
    "latestExecutionExitCode": "UNKNOWN",
    "target": "CUSTOMER",
    "locationId": "",
    "percentageComplete": 100
  },
  "properties": {
    "name": {
      "type": "string",
      "example": "dynamicdevicesettings",
      "description": "Name of the job which in this case, is `dynamicdevicesettings`."
    },
    "id": {
      "type": "string",
      "example": "Y2lzY29zcGFyazovL3VzL0pPQl9JRC8wNjZkOTQzNC1kODEyLTQzODItODVhMC00MjBlOTFlODg3ZTY",
      "description": "Unique identifier of the job."
    },
    "trackingId": {
      "type": "string",
      "example": "ROUTERGW_1d458245-ee34-48c8-8ed6-92ea16ed48aa",
      "description": "Unique identifier to track the flow of HTTP requests."
    },
    "sourceUserId": {
      "type": "string",
      "example": "Y2lzY29zcGFyazovL3VzL1BFT1BMRS81MDRhZmQ1YS0zODRiLTQ0NjYtYTJlNC05Y2ExZjUwMDRlYWQ",
      "description": "Unique identifier of the user who has run the job."
    },
    "sourceCustomerId": {
      "type": "string",
      "example": "Y2lzY29zcGFyazovL3VzL09SR0FOSVpBVElPTi9lYTRiZTEyNS00Y2ZjLTQ5OTItOGMwNi00Y2U4Mzc2ZDU4MmE",
      "description": "Unique identifier of the customer who has run the job."
    },
    "targetCustomerId": {
      "type": "string",
      "example": "Y2lzY29zcGFyazovL3VzL09SR0FOSVpBVElPTi9lYTRiZTEyNS00Y2ZjLTQ5OTItOGMwNi00Y2U4Mzc2ZDU4MmE",
      "description": "Unique identifier of the customer for which the job was run."
    },
    "instanceId": {
      "type": "number",
      "example": 428989,
      "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": {
      "$ref": "#/components/schemas/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"
      ],
      "example": "LOCATION",
      "description": "Indicates the target entity."
    },
    "locationId": {
      "type": "string",
      "example": "Y2lzY29zcGFyazovL3VzL0xPQ0FUSU9OLzQ0Y2UwNDBhLTEzNmMtNDc3NS1hMjIzLTY5OTczYmEyYWNhYw",
      "description": "Unique identifier of a location."
    },
    "locationName": {
      "type": "string",
      "example": "Brampton",
      "description": "Name of the location. Included only when `target` is `LOCATION`."
    },
    "percentageComplete": {
      "type": "integer",
      "example": 10,
      "description": "Indicates the progress of the job."
    }
  }
}