# Replace User Account Permissions

Replaces all account permission assignments for a user. This is a full replacement — any existing account permissions not included in the request will be removed.

**PUT** `/organizations/users/{user_id}/account-permissions`

Base URL: `https://api-sandbox.whitelabel.com/v1`

Replaces all account permission assignments for a user. This is a full replacement.

## Authorization

- PUBLIC-API-KEY (apiKey in header)
- PRIVATE-SECRET-KEY (apiKey in header)

## Path parameters

- `user_id` (string, required)
  User UUID.

## Body

Content type: `application/json`

- `account_permissions` (object[], required)
  - `account_id` (string<uuid>, required)
  - `role_id` (string, required)

Example:

```json
{
  "account_permissions": [
    {
      "account_id": "00000000-0000-0000-0000-000000000000",
      "role_id": "string"
    }
  ]
}
```

## Responses

### 200

OK

- `status` (string)

Example:

```json
{
  "status": "ok"
}
```