---
title: "Update Name"
method: PATCH
path: "/api/account"
tags: ["account"]
---

# Update Name

`PATCH /api/account`

## Request

- Base URL: `https://api.heymetra.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.heymetra.com/api/account`
- Auth: none declared

Set this person's name. Keycloak first, the mirror only if that lands.

Written in that order on purpose: if the Admin API call fails, nothing is
ever written to the user row, so the row and Keycloak cannot disagree about
whose name is current.

## Headers

- `authorization` string, nullable
- `x-workspace-id` string, nullable

## Request body

- AccountNameIn
  - `first_name` string, required
  - `last_name` string, required

## Response `200`

Successful Response

- AccountNameOut
  - `first_name` string, required
  - `last_name` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/heymetra/apis/heymetra-api.md) · [All operations](https://skmtc.dev/heymetra/apis/heymetra-api/llms.txt) · [OpenAPI document](https://skmtc.dev/heymetra/apis/heymetra-api/revisions/877b0f87d6d0?raw)
