---
title: "Update Account"
method: POST
path: "/api/accounts/update/{account_name}"
tags: ["Accounts"]
---

# Update Account

`POST /api/accounts/update/{account_name}`

## Request

- Base URL: `https://api.duda.co`
- URL: `https://api.duda.co/api/accounts/update/{account_name}`
- Auth: HTTP basic

Updates an existing account. You can't change an account's name or type after it's created.

## Path parameters

- `account_name` string, required

## Request body

- CreateOrUpdateAccount: Create or Update account resource
  - `account_name` string, required: Account name identifier
  - `account_type` 'STAFF' | 'CUSTOMER'
  - `company_name` string
  - `email` string
  - `first_name` string, required: Account first name
  - `lang` string
  - `last_name` string, required: Account last name
  - `standing` 'ACTIVE' | 'SUSPENDED': Customer access status
  - `status` 'OK' | 'SUSPENDED'

## Response `204`

No Content

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `402`: Payment Required
- `405`: Method Not Allowed
- `429`: Too many requests. The rate limit was exceeded.
- `500`: Internal Server Error

---

[API](https://skmtc.dev/duda/apis/duda-partner-api.md) - [All operations](https://skmtc.dev/duda/apis/duda-partner-api/llms.txt) - [OpenAPI document](https://skmtc.dev/duda/apis/duda-partner-api/revisions/52be4d41cb12?raw)
