# Update profile

Updates the signed-in user's name and notification preferences (and email, in demo mode only). Console session only.

`PATCH /v1/me`

Updates the signed-in user's name and notification preferences (and email, in demo mode only). Console session only.

## Request body

```json
{
  "name": "Example",
  "notification_prefs": {},
  "email": "owner@example.com"
}
```

## Responses

- **200**: Success.
- **400**: Invalid request: a field is missing or malformed (VALIDATION_ERROR).
- **401**: No valid session, API key or agent credential (UNAUTHENTICATED, AGENT_CREDENTIAL_INVALID).
- **409**: Conflicts with the current state, for example a reused Idempotency-Key or an illegal state change.

Example 200 response:

```json
{
  "user": {
    "id": "id_01jd2x3k4m5n6p7q8r9s0t1v2w",
    "email": "owner@example.com",
    "name": "Example",
    "telegram_linked": true,
    "notification_prefs": {},
    "telegram_username": "string"
  },
  "email_change": {
    "applied": true,
    "email": "owner@example.com"
  }
}
```
