Update zebraFotaDeployment
Namespace: microsoft.graph
Important: Microsoft Graph APIs under the /beta version are subject to change; production use is not supported.
Note: The Microsoft Graph API for Intune requires an active Intune license for the tenant.
Update the properties of a zebraFotaDeployment object.
Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | DeviceManagementConfiguration.ReadWrite.All |
Delegated (personal Microsoft account) | Not supported. |
Application | DeviceManagementConfiguration.ReadWrite.All |
HTTP Request
PATCH /deviceManagement/zebraFotaDeployments/{zebraFotaDeploymentId}
Request headers
Header | Value |
---|---|
Authorization | Bearer <token> Required. |
Accept | application/json |
Request body
In the request body, supply a JSON representation for the zebraFotaDeployment object.
The following table shows the properties that are required when you create the zebraFotaDeployment.
Property | Type | Description |
---|---|---|
id | String | System generated deployment id provided during creation of the deployment. Returned only if operation was a success. |
displayName | String | A human readable name of the deployment. |
description | String | A human readable description of the deployment. |
deploymentSettings | zebraFotaDeploymentSettings | Represents settings required to create a deployment such as deployment type, artifact info, download and installation |
deploymentAssignments | androidFotaDeploymentAssignment collection | Collection of Android FOTA Assignment |
deploymentStatus | zebraFotaDeploymentStatus | Represents the deployment status from Zebra. The status is a high level status of the deployment as opposed being a detailed status per device. |
Response
If successful, this method returns a 200 OK
response code and an updated zebraFotaDeployment object in the response body.
Example
Request
Here is an example of the request.
PATCH https://graph.microsoft.com/beta/deviceManagement/zebraFotaDeployments/{zebraFotaDeploymentId}
Content-type: application/json
Content-length: 2024
{
"@odata.type": "#microsoft.graph.zebraFotaDeployment",
"displayName": "Display Name value",
"description": "Description value",
"deploymentSettings": {
"@odata.type": "microsoft.graph.zebraFotaDeploymentSettings",
"deviceModel": "Device Model value",
"updateType": "latest",
"timeZoneOffsetInMinutes": 7,
"firmwareTargetArtifactDescription": "Firmware Target Artifact Description value",
"firmwareTargetBoardSupportPackageVersion": "Firmware Target Board Support Package Version value",
"firmwareTargetPatch": "Firmware Target Patch value",
"firmwareTargetOsVersion": "Firmware Target Os Version value",
"scheduleMode": "scheduled",
"scheduleDurationInDays": 6,
"downloadRuleNetworkType": "wifi",
"downloadRuleStartDateTime": "2016-12-31T23:59:33.2519835-08:00",
"installRuleStartDateTime": "2017-01-01T00:02:31.1558076-08:00",
"installRuleWindowStartTime": "11:57:19.2230000",
"installRuleWindowEndTime": "11:58:38.5330000",
"batteryRuleMinimumBatteryLevelPercentage": 8,
"batteryRuleRequireCharger": true
},
"deploymentAssignments": [
{
"@odata.type": "microsoft.graph.androidFotaDeploymentAssignment",
"id": "Id value",
"displayName": "Display Name value",
"target": {
"@odata.type": "microsoft.graph.androidFotaDeploymentAssignmentTarget",
"groupId": "Group Id value"
}
}
],
"deploymentStatus": {
"@odata.type": "microsoft.graph.zebraFotaDeploymentStatus",
"state": "createFailed",
"totalDevices": 12,
"totalCreated": 12,
"totalScheduled": 14,
"totalDownloading": 0,
"totalAwaitingInstall": 4,
"totalSucceededInstall": 5,
"totalCanceled": 13,
"totalUnknown": 12,
"totalFailedDownload": 3,
"totalFailedInstall": 2,
"completeOrCanceledDateTime": "2016-12-31T23:59:29.651377-08:00",
"cancelRequested": true,
"lastUpdatedDateTime": "2017-01-01T00:00:56.8321556-08:00"
}
}
Response
Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 2073
{
"@odata.type": "#microsoft.graph.zebraFotaDeployment",
"id": "8bbfa8a0-a8a0-8bbf-a0a8-bf8ba0a8bf8b",
"displayName": "Display Name value",
"description": "Description value",
"deploymentSettings": {
"@odata.type": "microsoft.graph.zebraFotaDeploymentSettings",
"deviceModel": "Device Model value",
"updateType": "latest",
"timeZoneOffsetInMinutes": 7,
"firmwareTargetArtifactDescription": "Firmware Target Artifact Description value",
"firmwareTargetBoardSupportPackageVersion": "Firmware Target Board Support Package Version value",
"firmwareTargetPatch": "Firmware Target Patch value",
"firmwareTargetOsVersion": "Firmware Target Os Version value",
"scheduleMode": "scheduled",
"scheduleDurationInDays": 6,
"downloadRuleNetworkType": "wifi",
"downloadRuleStartDateTime": "2016-12-31T23:59:33.2519835-08:00",
"installRuleStartDateTime": "2017-01-01T00:02:31.1558076-08:00",
"installRuleWindowStartTime": "11:57:19.2230000",
"installRuleWindowEndTime": "11:58:38.5330000",
"batteryRuleMinimumBatteryLevelPercentage": 8,
"batteryRuleRequireCharger": true
},
"deploymentAssignments": [
{
"@odata.type": "microsoft.graph.androidFotaDeploymentAssignment",
"id": "Id value",
"displayName": "Display Name value",
"target": {
"@odata.type": "microsoft.graph.androidFotaDeploymentAssignmentTarget",
"groupId": "Group Id value"
}
}
],
"deploymentStatus": {
"@odata.type": "microsoft.graph.zebraFotaDeploymentStatus",
"state": "createFailed",
"totalDevices": 12,
"totalCreated": 12,
"totalScheduled": 14,
"totalDownloading": 0,
"totalAwaitingInstall": 4,
"totalSucceededInstall": 5,
"totalCanceled": 13,
"totalUnknown": 12,
"totalFailedDownload": 3,
"totalFailedInstall": 2,
"completeOrCanceledDateTime": "2016-12-31T23:59:29.651377-08:00",
"cancelRequested": true,
"lastUpdatedDateTime": "2017-01-01T00:00:56.8321556-08:00"
}
}
Feedback
Submit and view feedback for