Accounts
Update account info
Modify the details of an existing account.
The Update Account Info endpoint lets you modify details of an existing account, such as the account name, email, or preferences. Only the authenticated account owner (or an admin with elevated privileges) can update account information.
Endpoint
Headers
Key | Value | Required |
---|---|---|
Content-Type | application/json | Yes |
Authorization | Bearer <access_token> | Yes |
Request Body
You can update one or multiple fields. Fields not included in the request remain unchanged.
Field | Type | Required | Description |
---|---|---|---|
name | string | No | New account name. |
string | No | New account email. Must be unique. | |
settings | object | No | Updated preferences (currency, timezone, language). |
Response
Successful Response (200 OK)
Field | Type | Description |
---|---|---|
id | string | Unique identifier of the account. |
string | Updated account email. | |
name | string | Updated account name. |
type | string | individual or business. |
status | string | Current status of the account. |
created_at | string | ISO 8601 timestamp when the account was created. |
updated_at | string | ISO 8601 timestamp when the account was last updated. |
settings | object | Updated preferences. |
Error Response (400 / 409)
Error Code | Meaning |
---|---|
invalid_request | The request body contains invalid or missing fields. |
email_exists | Attempted to update to an email already in use. |
unauthorized | The provided token does not have permission to update this account. |
Example Usage
cURL
JavaScript (Fetch)
Updating sensitive fields such as email may trigger a verification flow depending on your account policies.