Update MFA Push Credential
PUT {{apiPath}}/environments/{{envID}}/applications/{{appID}}/pushCredentials/{{pushCredID}}
The sample shows the PUT /environments/{{envID}}/applications/{{appID}}/pushCredentials/{{pushCredentialsID}} operation to update the push credentials specified by its ID in the request URL. The push credentials are updated only for the application identified in the request URL.
Since key, teamId and token are considered credentials, these fields can be created with a POST request and updated with a PUT request, but are not returned by a GET request.
Prerequisites
- See Application MFA Push Credentials for important overview information.
See the MFA push credentials data model for complete descriptions.
| Property | Type | Required? |
|---|---|---|
| key | String | Required |
| teamId | String | Required |
| token | String | Required |
Request Body
{"type"=>"APNS", "key"=>"key.value.updated", "teamId"=>"team.id.updated", "token"=>"-----BEGIN PRIVATE KEY-----\nMIGTAgEA****7HUikGZU\n-----END PRIVATE KEY-----"}
RESPONSES
status: OK
{"_links":{"self":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/applications/830109c7-f8aa-491e-b2f2-8f7532ae85e9/pushCredentials/d7221ba8-5ec5-41ca-b44b-98213547e462"},"environment":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"},"application":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/applications/830109c7-f8aa-491e-b2f2-8f7532ae85e9"}},"id":"d7221ba8-5ec5-41ca-b44b-98213547e462","environment":{"id":"abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"},"application":{"id":"830109c7-f8aa-491e-b2f2-8f7532ae85e9"},"createdAt":"2022-01-06T15:44:10.669Z","updatedAt":"2022-01-06T15:45:41.296Z","type":"APNS"}