Users

Rotate a push notification subscription

Replaces an existing push subscription whose endpoint has been rotated by the browser (pushsubscriptionchange). Deletes the row keyed by the old endpoint and inserts a new one for the new endpoint.

post/users/@me/push/rotate

Request body

old_endpointstring required

The previous push subscription endpoint URL being rotated out

endpointstring required

The new push subscription endpoint URL

user_agentstring

The user agent string identifying the client

Response

Success

subscription_idstring required

The unique identifier for the push subscription

Changes

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