Register a device push subscription
POST/api/me/push-subscriptions
Register (UPSERT) a device push subscription for the acting user. Keyed by
(tenant, onesignal_subscription_id): a re-register re-binds the device to the
acting user and refreshes last_seen_at. The web/native OneSignal SDK obtains
the subscription (player) id and calls this. Returns 201 on create, 200 on
update.
Request
Responses
- 200
- 201
- 401
- 422
The subscription was re-registered (updated).
The subscription was created.
Not authenticated. code: account_disabled means the member's seat was deactivated in this workspace: the session is over even though the token was not revoked (clients sign out and clean up).
The request failed validation.