---
title: "Updates the account with the specified id."
method: PUT
path: "/accounts/{accountId}"
tags: ["accounts"]
---

# Updates the account with the specified id.

`PUT /accounts/{accountId}`

Updates the account with the specified id.
Does not update the external account of the user.
Use the 'accounts/connectToSocialAccount' or 'accounts/disconnectToSocialAccount' endpoints instead.
If the email of the account is changed, the email will not be changed immediately but a verification email will be sent to the new email address.
The email will only be changed after the user has verified the new email address.

<Check title="Required Permissions" icon="key">Any authenticated user.</Check>

## Path parameters

- `accountId` string, uuid, required

## Headers

- `Authorization` string, required

## Request body

- AccountForm — The POST/PUT model for an account.
  - `email` string, email, nullable — The email of the account.
  - `firstName` string, nullable — The first name of the account.
  - `lastName` string, nullable — The last name of the account.
  - `language` string, nullable — The language of the account, as a Language Culture Name (de-DE).
  - `timezone` string, nullable — The timezone of the account. The format of the timezone is the IANA standard.
  - `mfaEnabled` boolean — Whether MFA is enabled for the account.

## Response `200`

OK

- Account — The account represents a unique user account within awork.
  - `email` string, email, nullable — The email of the account.
  - `firstName` string, nullable — The first name of the account.
  - `lastName` string, nullable — The last name of the account.
  - `language` string, nullable — The language of the account, as a Language Culture Name (de-DE).
  - `timezone` string, nullable — The timezone of the account. The format of the timezone is the IANA standard.
  - `mfaEnabled` boolean — Whether MFA is enabled for the account.
  - `id` string, uuid — The id of the account.
  - `passwordIsAutoGenerated` boolean — Whether the password is generated by awork.
  - `emailConfirmed` boolean — Whether the email has been confirmed by the user.
  - `externalAccounts` ExternalAccount[], nullable — The list of connected social providers.
    - `provider` string, nullable — The name of the external provider.
    - `externalUserId` string, nullable — The id of the user for the external account.
  - `mfaProviders` string[], nullable — The enabled MFA providers for the account. Currently we support "Email" and "Authenticator".
  - `passwordlessEnabled` boolean — Whether the account has passwordless login enabled.

---

[API](https://skmtc.net/awork-io/apis/api-v1-reference.md) · [All operations](https://skmtc.net/awork-io/apis/api-v1-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/awork-io/api-v1-reference/versions/f784a53f60df/schema)
