patch
https://api.things5.digital/v1/current_user/device_notification/
Renames a push device or turns its notifications on or off
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Changes the label of a registered device and/or turns its notifications on or off. While enabled is false the device stays registered but receives no push notifications.
Send the fields inside a user_device object, for example {"user_device": {"enabled": false}}. At least one of label and enabled is required, otherwise the response is 422. Any other field is ignored: user_agent and platform are updated only by Register push device.
Returns 404 if the token is not registered for the current user.
