# Update mobile notifications

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

Part of [Hoppers](https://www.cryptohopper.com/api-documentation/api-reference/hoppers.md) in the Cryptohopper API reference.

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

OAuth scope: `manage`

## Headers

| Name | Type | Required | Description |
|---|---|---|---|
| `access-token` | string | no | The OAuth access token of the user. |

## Query parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `player_id` | string | yes | Push notification player ID of the device. |
| `type` | string | no | Send logout to stop notifications for this device; any other value turns them on. |

## Example request

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

## Response

Example response (illustrative values):

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

Status codes: 200. Errors return JSON with `status`, `error` and `message`, plus a numeric `code` when the error comes from the API itself rather than the gateway.
