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:
Make a
GETrequest to/environments/{{envID}}/templatesto read all notification templates.Make a
POSTrequest to/environments/{{envID}}/templates/general/contentsto create email notification content.Make a
PUTrequest to/environments/{{envID}}/templates/general/contents/{{emailContentID}}to update the email notification content.Make a
POSTrequest to/environments/{{envID}}/templates/general/contentsto create SMS notification content.Make a
PUTrequest to/environments/{{envID}}/templates/general/contents/{{smsContentID}}to update the SMS notification content.Make a
POSTrequest to/environments/{{envID}}/templates/general/contentsto create voice notification content.Make a
PUTrequest to/environments/{{envID}}/templates/general/contents/{{voiceContentID}}to update the voice notification content.Make a
POSTrequest to/environments/{{envID}}/templates/transaction/contentsto create push notification content.Make a
PUTrequest to/environments/{{envID}}/templates/transaction/contents/{{pushContentID}}to update the push notification content.Make a
GETrequest to/environments/{{envID}}/templates/general/contentsto read all general template notification content.Make a
GETrequest to/environments/{{envID}}/templates/transaction/contents/{{pushContentID}}to read only push notification content.
-
Step 5: Update SMS notification content PUT {{apiPath}}/environments/{{envID}}/templates/general/contents/{{smsContentID}}
-
Step 6: Create voice notification content POST {{apiPath}}/environments/{{envID}}/templates/general/contents
-
Step 7: Update voice notification content PUT {{apiPath}}/environments/{{envID}}/templates/general/contents/{{voiceContentID}}
-
Step 9: Update push notification content PUT {{apiPath}}/environments/{{envID}}/templates/transaction/contents/{{pushContentID}}
-
Step 1: Read all notification templates GET {{apiPath}}/environments/{{envID}}/templates
-
Step 10: Read all general template notification content GET {{apiPath}}/environments/{{envID}}/templates/general/contents
-
Step 3: Update email notification content PUT {{apiPath}}/environments/{{envID}}/templates/general/contents/{{emailContentID}}
-
Step 11: Read only push notification content GET {{apiPath}}/environments/{{envID}}/templates/transaction/contents/{{pushContentID}}
-
Step 8: Create push notification content POST {{apiPath}}/environments/{{envID}}/templates/transaction/contents