Update Push Content
PUT {{apiPath}}/environments/{{envID}}/templates/{{templateName}}/contents/{{contentID}}
The PUT /environments/{{envID}}/templates/{{templateName}}/contents/{{contentID}}
operation updates an existing customized content resource associated with the template specified in the request URL.
In addition, the variables restrictions should apply.
Important: Before you create or update a custom content, you should always do a GET Read One Template on the notification template to determine its supported variables.
Prerequisites
See Notifications for important overview information.
Use Read All Templates to retrieve a list of all notifications templates associated with the environment and select the specific
templateName
for the endpoint. For more information, see Notifications Templates.
Property | Type | Required? |
---|---|---|
body | String | Required |
deliveryMethod | String | Required |
locale | String | Required |
title | String | Optional |
See the Notifications templates property data models for full property descriptions.
Request Body
{"locale"=>"en-gb", "title"=>"Push Message", "body"=>"${user.username}, you have a new authentication request.", "deliveryMethod"=>"Push"}
RESPONSES
status: OK
{"_links":{"self":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/templates/strong_authentication/contents/4afe5f64-044c-44b3-b73a-359cc90ea65b"},"template":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/templates/strong_authentication"},"environment":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"}},"id":"4afe5f64-044c-44b3-b73a-359cc90ea65b","environment":{"id":"abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"},"createdAt":"2020-12-12T00:21:02.241Z","updatedAt":"2021-01-14T05:55:18.524Z","locale":"en-gb","template":{"id":"strong_authentication"},"title":"Push Message","body":"${user.username}, you have a new authentication request.","deliveryMethod":"Push","default":false}