Create and Update Notification Content

Number of APIs: 9

This activity shows you how to create and update content for different types of notifications.

Prerequisites

Get an access token from the worker application that you created in Getting Started with the PingOne APIs. To get a token from a different worker application in an alternate sandbox environment, run the token request endpoint using the client ID and client secret of your chosen worker app to authenticate the request. For more information, see GET a Worker Application Access Token.

Workflow order of operations

To create and update content for different types of notifications:

  1. Make a GET request to /environments/{{envID}}/templates to read all notification templates.

  2. Make a POST request to /environments/{{envID}}/templates/general/contents to create email notification content.

  3. Make a PUT request to /environments/{{envID}}/templates/general/contents/{{emailContentID}} to update the email notification content.

  4. Make a POST request to /environments/{{envID}}/templates/general/contents to create SMS notification content.

  5. Make a PUT request to /environments/{{envID}}/templates/general/contents/{{smsContentID}} to update the SMS notification content.

  6. Make a POST request to /environments/{{envID}}/templates/general/contents to create voice notification content.

  7. Make a PUT request to /environments/{{envID}}/templates/general/contents/{{voiceContentID}} to update the voice notification content.

  8. Make a POST request to /environments/{{envID}}/templates/transaction/contents to create push notification content.

  9. Make a PUT request to /environments/{{envID}}/templates/transaction/contents/{{pushContentID}} to update the push notification content.

  10. Make a GET request to /environments/{{envID}}/templates/general/contents to read all general template notification content.

  11. Make a GET request to /environments/{{envID}}/templates/transaction/contents/{{pushContentID}} to read only push notification content.

  1. Step 5: Update SMS notification content PUT {{apiPath}}/environments/{{envID}}/templates/general/contents/{{smsContentID}}

  2. Step 6: Create voice notification content POST {{apiPath}}/environments/{{envID}}/templates/general/contents

  3. Step 7: Update voice notification content PUT {{apiPath}}/environments/{{envID}}/templates/general/contents/{{voiceContentID}}

  4. Step 9: Update push notification content PUT {{apiPath}}/environments/{{envID}}/templates/transaction/contents/{{pushContentID}}

  5. Step 1: Read all notification templates GET {{apiPath}}/environments/{{envID}}/templates

  6. Step 10: Read all general template notification content GET {{apiPath}}/environments/{{envID}}/templates/general/contents

  7. Step 3: Update email notification content PUT {{apiPath}}/environments/{{envID}}/templates/general/contents/{{emailContentID}}

  8. Step 11: Read only push notification content GET {{apiPath}}/environments/{{envID}}/templates/transaction/contents/{{pushContentID}}

  9. Step 8: Create push notification content POST {{apiPath}}/environments/{{envID}}/templates/transaction/contents