Update subscription
Changed onUpdate properties on an existing OneSignal subscription using its subscription_id. Commonly used to enable or disable a subscription when managing outside of the OneSignal SDK.
patch/apps/{app_id}/subscriptions/{subscription_id}
Request
- Base URLhttps://api.onesignal.com
- URLhttps://api.onesignal.com/apps/{app_id}/subscriptions/{subscription_id}
- Authnone required
Path parameters
app_idstring required
Your OneSignal App ID in UUID v4 format. See Keys & IDs.
subscription_idstring required
The unique Subscription ID in UUID v4 format generated by OneSignal. See Subscriptions.
Request body
Response
200
object required
The Subscription updated successfully. This process is asynchronous and may take a few seconds to complete.
Changes
- breaking
removed the enum value
SafariLegacyPushof the request property/
- breaking