curl --request POST \
--url https://api.example.com/admin/notify-template/save \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"notifyTemplateID": 1,
"notifyTemplateCode": "FEATURE_UPDATE",
"notifyTemplateTypeID": 1,
"htmlTemplate": "<html></body><p>[Phrase:33]</p></body></html>",
"htmlSnippet": "<html></body><p>[Phrase:273]</p></body></html>",
"plainTextTemplate": "[Phrase:3], [Phrase:33]!",
"smsTemplate": "[Phrase:3], [Phrase:33]!",
"pushTemplate": "[Phrase:3], [Phrase:33]!",
"subjectLineTemplate": "[Phrase:123][Phrase:456]",
"englishNotes": "I just made some adjustments to the push notification template because bla bla bla"
}
'{
"success": true,
"data": "<unknown>"
}Saves the new or updated template
curl --request POST \
--url https://api.example.com/admin/notify-template/save \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"notifyTemplateID": 1,
"notifyTemplateCode": "FEATURE_UPDATE",
"notifyTemplateTypeID": 1,
"htmlTemplate": "<html></body><p>[Phrase:33]</p></body></html>",
"htmlSnippet": "<html></body><p>[Phrase:273]</p></body></html>",
"plainTextTemplate": "[Phrase:3], [Phrase:33]!",
"smsTemplate": "[Phrase:3], [Phrase:33]!",
"pushTemplate": "[Phrase:3], [Phrase:33]!",
"subjectLineTemplate": "[Phrase:123][Phrase:456]",
"englishNotes": "I just made some adjustments to the push notification template because bla bla bla"
}
'{
"success": true,
"data": "<unknown>"
}The access token received from the authorization server in the OAuth 2.0 flow.
1, 2