# Update the profile

`PATCH /api/v1/me`

Changes the signed-in person's display name. The email changes with [Change the email](https://docs.monitorly.cloud/api/reference/operations/request-email-change.md).

Sign-in: a dashboard session only. API tokens and OAuth sign-ins get `403 token.not_allowed`.

Section: Sign-in and account. Operation id in openapi.json: `update_me`.

## Request body

Required: yes.

`application/json`: ProfileInput

| Field | Type | Required | Description |
|---|---|---|---|
| `displayName` | string | yes | 1–200 characters after trimming. |

## Responses

Errors are `application/problem+json` (`Problem`); branch on `type`.

### 200

The profile.

`application/json`: UserView

| Field | Type | Required | Description |
|---|---|---|---|
| `displayName` | string | yes |  |
| `email` | string | yes |  |
| `emailVerified` | boolean | yes | The email was confirmed by the link from the sign-up email (accounts made by the CLI or an invite are confirmed). Unconfirmed accounts can sign in but change nothing in a workspace. |
| `hasPassword` | boolean | no | The account has a password (one made by Google or GitHub has none until a reset link sets it). Always sent; optional in the schema because it came after the first clients (2026-11-15). |
| `id` | string (uuid) | yes |  |
| `identities` | array of IdentityView | no | The Google and GitHub accounts linked for sign-in. Always sent, like `hasPassword`. |
| `installationOwner` | boolean | yes |  |
| `termsAcceptedAt` | string \| null | no |  |
| `termsRequired` | boolean | no | A Google or GitHub sign-in made this account and nobody accepted the Terms yet: the dashboard asks first (`POST /me/terms`). Always sent. |
| `termsVersion` | string \| null | no | The version of the Terms and Privacy Policy the account accepted, and when (`null` for accounts made before 2026-11-17, which are not asked). Always sent, like `hasPassword`. |
| `totpEnabled` | boolean | yes |  |

### 400

Bad Request.

- `request.malformed`: the body or a parameter is not of the expected shape
- `auth.credentials_conflict`: the request carries both a session cookie and a token

### 401

Unauthorized.

- `auth.unauthenticated`, `auth.session_expired`: no session, or it ended
- `token.invalid`: the token is malformed, unknown, revoked or expired, or its creator left the workspace

### 403

Forbidden.

- `auth.forbidden`: your role is too low for this
- `token.not_allowed`: this operation needs a signed-in session; tokens cannot call it
- `request.origin_mismatch`, `request.header_required`: a changing request with a session comes from another site or lacks `X-Monitorly-Request: 1`

### 413

Payload Too Large.

- `request.too_large`: the body is larger than 256 KiB

### 422

Unprocessable Entity.

- `field.required`, `field.too_long`, `field.invalid`: a field breaks a rule; `errors` points at it

### 429

Too Many Requests.

- `session.rate_limited`: more than 5 changes a second from your sessions

Schemas named above are listed with their fields in [the schema list](https://docs.monitorly.cloud/api/reference/schemas.md).
