---
title: "Replaces an existing account."
method: PUT
path: "/account/v0-nsfw/accounts/current"
tags: ["Account"]
---

# Replaces an existing account.

`PUT /account/v0-nsfw/accounts/current`

## Request

- Base URL: `https://api.apaleo.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.apaleo.com/account/v0-nsfw/accounts/current`
- Auth: OAuth 2
  - Implicit: `https://identity.apaleo.com/connect/authorize`
  - Scopes: `account.manage`, `admin`

Completely replaces an account with the new definition passed in. The old data will be lost.<br>You must have this scope: 'account.manage'.<br>For fine-grained clients, you must have this permission: 'core.current_account.modify'.

## Request body

- ReplaceAccountModel: With this request you can modify an account
  - `name` string, required: The name for the account, which usually should be the company name
  - `description` string, nullable: The description for the account
  - `logoUrl` string, nullable: The URL of the account logo
  - `location` CreateAddressModel
    - `addressLine1` string, required
    - `addressLine2` string, nullable
    - `postalCode` string, required
    - `city` string, required
    - `regionCode` string, nullable: The ISO 3166-2 code
    - `countryCode` string, required: The country code, in ISO 3166-1 alpha-2 code
  - `additionallySupportedCountries` string[], nullable: The list of supported countries

## Response `204`

The account has been replaced.

## Other responses

- `400`: Bad request.
- `401`: You are unauthorized.
- `403`: Forbidden.
- `404`: The Request-URI could not be found.
- `415`: Unsupported media type.
- `422`: Validation errors in the request body or query params.
- `499`: Client closed request.
- `500`: An unexpected error occurred.
- `503`: The server is currently unavailable. Please try later.

---

[API](https://skmtc.dev/apaleo/apis/apaleo-account-api-not-safe-for-work.md) - [All operations](https://skmtc.dev/apaleo/apis/apaleo-account-api-not-safe-for-work/llms.txt) - [OpenAPI document](https://skmtc.dev/apaleo/apis/apaleo-account-api-not-safe-for-work/revisions/74c7543bc2bf?raw)
