---
title: "Update an account"
method: PATCH
path: "/accounts/{id}"
tags: ["Accounts"]
---

# Update an account

`PATCH /accounts/{id}`

## Request

- Base URL: `https://api-staging.fanheroapi.com`
- URL: `https://api-staging.fanheroapi.com/accounts/{id}`
- Auth: API key in header `apiKey`

## Request body

- UpdateAccountInput
  - `display_name` string: Display Name
  - `username` string: Username
  - `first_name` string: First Name
  - `last_name` string: Last Name
  - `email` string: Contact email address
  - `roles` string[]: An array of role IDs

## Response `200`

Account updated

- object

---

[API](https://skmtc.dev/fanhero/apis/user-management-endpoints.md) - [All operations](https://skmtc.dev/fanhero/apis/user-management-endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/fanhero/apis/user-management-endpoints/revisions/3f982670c057?raw)
