# Enable mobile notifications in user metadata

`PATCH https://api.cryptohopper.com/v1/user/usermetadata`

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

Sets mobile_notifications to 1 in the user's metadata. It takes no input.

OAuth scope: `user`

The stored metadata is replaced by {"mobile_notifications": 1}, so any other metadata keys are removed.

## Headers

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

## Example request

```bash
curl -X PATCH "https://api.cryptohopper.com/v1/user/usermetadata" \
  -H "access-token: YOUR_ACCESS_TOKEN"
```

## Response

Example response (illustrative values):

```json
{
    "data": "Mobile notifications enabled"
}
```

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.
