Update applePushNotificationCertificate
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 applePushNotificationCertificate object.
This API is available in the following national cloud deployments.
Global service | US Government L4 | US Government L5 (DOD) | China operated by 21Vianet |
---|---|---|---|
✅ | ✅ | ✅ | ✅ |
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) | DeviceManagementServiceConfig.ReadWrite.All, DeviceManagementConfiguration.ReadWrite.All |
Delegated (personal Microsoft account) | Not supported. |
Application | DeviceManagementServiceConfig.ReadWrite.All, DeviceManagementConfiguration.ReadWrite.All |
HTTP Request
PATCH /deviceManagement/applePushNotificationCertificate
Request headers
Header | Value |
---|---|
Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Accept | application/json |
Request body
In the request body, supply a JSON representation for the applePushNotificationCertificate object.
The following table shows the properties that are required when you create the applePushNotificationCertificate.
Property | Type | Description |
---|---|---|
id | String | Unique Identifier for the certificate |
appleIdentifier | String | Apple Id of the account used to create the MDM push certificate. |
topicIdentifier | String | Topic Id. |
lastModifiedDateTime | DateTimeOffset | Last modified date and time for Apple push notification certificate. |
expirationDateTime | DateTimeOffset | The expiration date and time for Apple push notification certificate. |
certificateUploadStatus | String | The certificate upload status. |
certificateUploadFailureReason | String | The reason the certificate upload failed. |
certificateSerialNumber | String | Certificate serial number. This property is read-only. |
certificate | String |
Response
If successful, this method returns a 200 OK
response code and an updated applePushNotificationCertificate object in the response body.
Example
Request
Here is an example of the request.
PATCH https://graph.microsoft.com/beta/deviceManagement/applePushNotificationCertificate
Content-type: application/json
Content-length: 481
{
"@odata.type": "#microsoft.graph.applePushNotificationCertificate",
"appleIdentifier": "Apple Identifier value",
"topicIdentifier": "Topic Identifier value",
"expirationDateTime": "2016-12-31T23:57:57.2481234-08:00",
"certificateUploadStatus": "Certificate Upload Status value",
"certificateUploadFailureReason": "Certificate Upload Failure Reason value",
"certificateSerialNumber": "Certificate Serial Number value",
"certificate": "Certificate value"
}
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: 594
{
"@odata.type": "#microsoft.graph.applePushNotificationCertificate",
"id": "c4c8f047-f047-c4c8-47f0-c8c447f0c8c4",
"appleIdentifier": "Apple Identifier value",
"topicIdentifier": "Topic Identifier value",
"lastModifiedDateTime": "2017-01-01T00:00:35.1329464-08:00",
"expirationDateTime": "2016-12-31T23:57:57.2481234-08:00",
"certificateUploadStatus": "Certificate Upload Status value",
"certificateUploadFailureReason": "Certificate Upload Failure Reason value",
"certificateSerialNumber": "Certificate Serial Number value",
"certificate": "Certificate value"
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for