Copy template to another app
documentedCopy a template to a different OneSignal app.
POST /templates/{template_id}/copy_to_appTemplatesno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.onesignal.com/templates/{{$template_id}}/copy_to_app?app_id={{$app_id}}" \
-X POST \
-H "Authorization: Key {{ONESIGNAL_API_KEY}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"target_app_id": "{{$target_app_id}}"}' \
# For reference, see OneSignal docs: Copy template to another app (POST /templates/{template_id}/copy_to_app) and related templates API.