User

Create push subscription

Changed on

Upserts the caller's push subscription. Body: { platform (required), provider?, externalSubscriptionId?, pushToken?, isEnabled?, metadata? }. A non-blank externalSubscriptionId is trimmed and upserted on that id, and the row's userId moves to the caller so a device signed into another account stops receiving the previous account's pushes. A missing or blank id updates or creates the legacy null-id row for that caller and platform. Returns 201.

post/api/user/push-subscriptions

Request

  • Base URL
    https://app.d-sports.org
  • Auth
    HTTP bearer

Response

{ success, data }

Changes