Device Upgrade Policy
A device update configuration is specific to a location and therefore all Mojo devices placed at that location can take access.You can choose to apply a device firmware update configuration recursively to the child location folders when you are creating or editing the device firmware update configuration, However, a child location folder can have its own device upgrade configuration. If you define the update configuration specific to the child location folder when a schedule for its parent location folder is already defined, the schedule configured to the child location applies to the child location folder
JSON Table
Parameter | Data Type | Description |
---|---|---|
policyCreatedAtLocId | application/json | ID of the location at which the policy has been defined. For details about the JSON, Click Location ID. |
policyType | String | A read-only field for internal use. |
scheduledDeviceUpgradeEnabled | boolean | Whether the device upgrade has been scheduled. |
newDeviceUpgradeEnabled | boolean | Whether a new device must be upgraded. |
schedule | application/json | The device upgrade schedule. |
schedule\scheduleId | int | A system-defined schedule ID. |
schedule\locationId | application/json | ID of the location. For details about the JSON, click Location ID. |
schedule\recurringSchedule | boolean | Whether the upgrade schedule is recurring or one-time. |
schedule\recurringDeviceUpgradeSchedule | application/json | Set to null if the schedule is one-time. |
schedule\recurringDeviceUpgradeSchedule\startDateTime | String | The date and time of upgrade in ddMMyyyyHHmmss format. |
schedule\recurringDeviceUpgradeSchedule\upgradeWindowDuration | application/json | The upgrade window duration. |
schedule\recurringDeviceUpgradeSchedule\upgradeWindowDuration\minutes | int | Duration window in minutes. |
schedule\recurringDeviceUpgradeSchedule\occursOn | String | A string array. The applicable values are SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, and SATURDAY. |
schedule\onetimeDeviceUpgradeSchedule | application/json | Set to null if the schedule is recurring. |
schedule\onetimeDeviceUpgradeSchedule\startDateTime | String | The date and time of upgrade in ddMMyyyyHHmmss format. |
schedule\onetimeDeviceUpgradeSchedule\upgradeWindowDuration | application/json | The upgrade window duration. |
schedule\onetimeDeviceUpgradeSchedule\upgradeWindowDuration\minutes | int | Duration window in minutes. |
scheduledDeviceUpgradeRecursiveApply | boolean | A true or false value indicating whether the device upgrade schedule must be applied to all sub-locations. This field is only applicable to Save policy, not to the Get policy. True indicates that the changes in the policy apply to all sub-locations. |
newDeviceUpgradeRecursiveApply | boolean | A true or false value indicating whether the new device upgrade policy must be applied to all sub-locations. This field is only applicable to Save policy, not to the Get policy. True indicates that the changes in the policy apply to all sub-locations. |
Copy Sample JSON
Sample JSON
{ "policyCreatedAtLocId": { "type": "locallocationid", "id": 0 }, "policyType": "DEVICE_UPGRADE", "scheduledDeviceUpgradeEnabled": false, "newDeviceUpgradeEnabled": false, "schedule": { "scheduleId": 0, "locationId": null, "recurringSchedule": false, "onetimeDeviceUpgradeSchedule": { "startDateTime": "000000", "upgradeWindowDuration": { "minutes": 0 } }, "recurringDeviceUpgradeSchedule": null }, "scheduledDeviceUpgradeRecursiveApply": false, "newDeviceUpgradeRecursiveApply": false, "firmwareUpdateConfigForSchedule": { "useLatestFirmwareForAllModels": true, "modelConfigurations": {}, "updateOtherModelsToLatest": false }, "firmwareUpdateConfigForNewDevices": { "useLatestFirmwareForAllModels": true, "modelConfigurations": {}, "updateOtherModelsToLatest": true } }
API Calls
/V5/policies/deviceupgrade
<Base_URL>/V2/analytics/associationdata/{startdate}/{enddate}
/V5/policies/deviceupgrade