Update mobile notifications

PATCH https://api.cryptohopper.com/v1/hopper/receivingmobilenotifications

Turns push notifications on or off for one mobile device of the user.

OAuth scope: manage About scopes

Example request

curl -X PATCH "https://api.cryptohopper.com/v1/hopper/receivingmobilenotifications?player_id=PLAYER_ID" \
  -H "access-token: YOUR_ACCESS_TOKEN"

Parameters

Headers

NameTypeRequiredDescription
access-token string Optional The OAuth access token of the user.

Query parameters

NameTypeRequiredDescription
player_id string Required Push notification player ID of the device.
type string Optional Send logout to stop notifications for this device; any other value turns them on.

Response

Example response (illustrative values)

{
    "data": "Receiving mobile notifications has been updated."
}

Status codes: 200. Errors return JSON with status, error and message. See How the API works for response codes and rate limits.