Create subscription by alias
documentedAttach a new subscription to an existing user identified by an alias.
POST /apps/{app_id}/users/by/{alias_label}/{alias_id}/subscriptionsUsersno 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/apps/{{$app_id}}/users/by/{{$alias_label}}/{{$alias_id}}/subscriptions" \
-X POST \
-H "Authorization: Key {{ONESIGNAL_API_KEY}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-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}}"}}'"