Users

Upsert Push Subscription

Register this device for push notifications, or refresh an existing registration.

Idempotent, and safe to call on every application start. Send notifications_enabled as true only when the user has just switched notifications on, so that their consent is recorded together with the registration.

post/users/me/push_subscriptions/

Request

  • Base URL: https://api.radist.online/v2
  • URL: https://api.radist.online/v2/users/me/push_subscriptions/
  • Auth: one of:
    • API key in header X-Api-Key
    • OAuth 2 (password, token URL https://auth.radist.online/auth/realms/radist/protocol/openid-connect/token)

Request body

endpointstring uri required
user_agentstring nullable
notifications_enabledboolean

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.