Update existing OneSignal message templates for push, email, or SMS. Changes apply immediately across dashboard and API usage via the template_id reference.
template_id.
Templates are updated using the same structure as when creating templates.
template_id (UUID v4). You can find it:

Copy Template ID
contents property must use the en (English) key along with other languages you want to support.isAndroid: true disables iOS and Web).isEmail: trueemail_subject and email_bodyisSMS: trueYour App API key with prefix Key. See Keys & IDs.
Your OneSignal App ID in UUID v4 format. See Keys & IDs.
An internal name you set to help organize and track Templates. Maximum 128 characters.
The main message body with language-specific values. Supports Message Personalization.
Required to be set true for email templates.
The body of the email in HTML format. Required for email templates. Supports Message Personalization.
Required to be set true for SMS templates.
Add personalization to your templates programmatically. No need to upload a CSV. See Dynamic Content for details.
"{\"campaign_id\": {\"A\": {\"title\": \"Custom Title A\", \"message\": \"Custom Message A\", \"url\": \"https://www.onesignal.com\"}, \"B\": {\"title\": \"Custom Title B\", \"message\": \"Custom Message B\", \"url\": \"https://www.onesignal.com/login\"}}}"
200
The ID of the template in UUID v4 format.
"15b739e8-93f9-4840-8c94-e115c30afddd"
An internal name you set to help organize and track Templates. Maximum 128 characters.
The date and time the template was created in ISO 8601 format.
The date and time the template was last updated in ISO 8601 format.
Options are: push, email, and SMS.