Sign in

Update subscription by ID

documented

Update an existing subscription by its ID.

PATCH /apps/{app_id}/subscriptions/{subscription_id}Subscriptionsno implementation yet0 runs
No 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/apps/{{$app_id}}/subscriptions/{{$subscription_id}}" \
  -X PATCH \
  -H "Content-Type: application/json" \
  -H "Authorization: Key {{ONESIGNAL_API_KEY}}" \
  -d '{"subscription": {"type": "{{$type}}", "token": "{{$token}}", "enabled": {{$enabled}}, "notification_types": {{$notification_types}}, "session_time": {{$session_time}}, "session_count": {{$session_count}}, "app_version": "{{$app_version}}", "device_model": "{{$device_model}}", "device_os": "{{$device_os}}", "test_type": {{$test_type}}, "sdk": "{{$sdk}}", "rooted": {{$rooted}}, "web_auth": "{{$web_auth}}", "web_p256": "{{$web_p256}}"}}'