---
updatedAt: 2026-10-05T21:33:06.000Z
agentTools:
  projectIndex: https://developer.duda.co/llms.txt
---

# Update Account

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

> 🚧 Note that we currently do not support updating the account name or type after it's been created.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Duda Partner API",
    "version": "1.0.0",
    "description": "REST API for Duda partners. Manage accounts, sites, content, collections, eCommerce, bookings, memberships and webhooks on the Duda platform."
  },
  "servers": [
    {
      "url": "https://api.duda.co",
      "description": "Production (US)"
    },
    {
      "url": "https://api.eu.duda.co",
      "description": "Production (EU)"
    },
    {
      "url": "https://api-sandbox.duda.co",
      "description": "Sandbox"
    }
  ],
  "security": [
    {
      "basicAuth": []
    }
  ],
  "paths": {
    "/api/accounts/update/{account_name}": {
      "post": {
        "tags": [
          "Accounts"
        ],
        "summary": "Update Account",
        "description": "Updates an existing account. You can't change an account's name or type after it's created.",
        "operationId": "updateAccount",
        "parameters": [
          {
            "$ref": "#/components/parameters/AccountName"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrUpdateAccount"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    }
  },
  "components": {
    "responses": {
      "BadRequest": {
        "description": "Bad Request",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorRDT"
            }
          }
        }
      },
      "InternalServerError": {
        "description": "Internal Server Error"
      },
      "MethodNotAllowed": {
        "description": "Method Not Allowed"
      },
      "PaymentRequired": {
        "description": "Payment Required",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorRDT"
            }
          }
        }
      },
      "TooManyRequests": {
        "description": "Too many requests. The rate limit was exceeded.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorRDT"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Unauthorized",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorRDT"
            }
          }
        }
      }
    },
    "schemas": {
      "CreateOrUpdateAccount": {
        "type": "object",
        "description": "Create or Update account resource",
        "properties": {
          "account_name": {
            "type": "string",
            "description": "Account name identifier",
            "maxLength": 150,
            "minLength": 0
          },
          "account_type": {
            "type": "string",
            "enum": [
              "STAFF",
              "CUSTOMER"
            ]
          },
          "company_name": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "maxLength": 150,
            "minLength": 0
          },
          "first_name": {
            "type": "string",
            "description": "Account first name"
          },
          "lang": {
            "type": "string"
          },
          "last_name": {
            "type": "string",
            "description": "Account last name"
          },
          "standing": {
            "type": "string",
            "description": "Customer access status",
            "enum": [
              "ACTIVE",
              "SUSPENDED"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "OK",
              "SUSPENDED"
            ]
          }
        },
        "required": [
          "account_name",
          "first_name",
          "last_name"
        ]
      },
      "ErrorRDT": {
        "type": "object",
        "properties": {
          "error_code": {
            "type": "string",
            "enum": [
              "AccessForbidden",
              "ResourceNotExist",
              "ResourceAlreadyExist",
              "InvalidInput",
              "InvalidState",
              "InternalError",
              "UnAuthorized",
              "TooManyRequests",
              "EmailDomainNotValidated",
              "InsufficientCredits"
            ]
          },
          "message": {
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "description": "API username and password. Find them in the API access section of the Business tools tab in the platform.",
        "scheme": "basic"
      }
    },
    "parameters": {
      "AccountName": {
        "name": "account_name",
        "in": "path",
        "description": "The account's unique name, set when the account is created.",
        "required": true,
        "schema": {
          "type": "string"
        }
      }
    }
  }
}
```