# Update My Profile

Update the authenticated user's username and/or display name.

## Overview

Allows the authenticated user to update their own `username` and/or `displayName`. At least one field must be provided.

### `PATCH /v1/users/me`

Authentication: bearer token required.

Update the current user's username and/or display name.

**Request body**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `username` | string | no | New username (3–100 chars). At least one field required. |
| `displayName` | string | no | Display name (max 100 chars, nullable) |

**Responses**

`200` OK

```json
{ "id": "uuid", "username": "alice_new", "displayName": "Alice Smith" }
```

`400` Bad Request

```json
{ "detail": "At least one field must be provided" }
```

`409` Conflict

```json
{ "detail": "Username already taken" }
```

**Example request**

```bash
curl -X PATCH https://api.aureahub.com/v1/users/me \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"displayName": "Alice Smith"}'
```

---

Web version: https://docs.aureahub.com/#users-me-update
