Overview
This endpoint allows you to update an existing push, email, or SMS template in your OneSignal app. Once updated, the changes are applied immediately and reflected across both the Dashboard and API when using the associatedtemplate_id.
Templates are updated using the same structure as when creating templates.
See Templates for more information.
How to use this API
To update a template, you must supply:- Your OneSignal App ID found in Keys & IDs.
- The Template ID
Template ID
Each template has a unique OneSignal-generatedtemplate_id (UUID v4). You can find it:
- Using the View Templates API
- In the OneSignal Dashboard under Messages > Templates > Options > Copy Template ID

Copy Template ID
Channel-Specific Requirements
Push Templates
- The
contentsproperty must use theen(English) key along with other languages you want to support. - All Push Notification Properties are valid.
- All platforms are enabled by default. To limit, explicitly enable desired ones (e.g.,
isAndroid: truedisables iOS and Web).
Email Templates
- Set
isEmail: true - Include
email_subjectandemail_body - All Email Channel Properties are supported.
SMS Templates
- Set
isSMS: true - All SMS Channel Properties are supported.
Headers
Path Parameters
Query Parameters
Body
application/json