v1

latestOpenAPI 3.1.02026-07-26497885.9 KB

Copy template to another app

Create a duplicate of a OneSignal message template in another app within the same organization. The new template will retain the same content but have a unique template ID.

post/templates/{template_id}/copy_to_app?app_id={app_id}

Path parameters

template_idstring required

The template ID in UUID v4 format. See Templates.

Query parameters

app_idstring required

Your OneSignal App ID in UUID v4 format. See Keys & IDs.

Headers

Authorizationstring required

Your Organization API key with prefix Key . See Keys & IDs.

Request body

target_app_idstring required

Specifies the OneSignal app ID that the template will be copied to. Cannot be the same as the app_id.

Response

200

successboolean

Whether the template was copied successfully.