# Change the ways into the account

> Which ways in the customer allows for the whole account - main access with a session only.

- Effect: Write - Changes the account. Agents ask first.
- Idempotent: yes
- Stability: beta
- REST: `POST https://api.manitu.de/v1/account/access/set`
- Needs: `account`
- Page: /reference/account/access/set/

**Changes the account. Agents say what will happen and wait for an explicit yes before calling it.**

## REST

`POST https://api.manitu.de/v1/account/access/set`

### Authentication

One of `X-API-Key`, `Authorization: Bearer …` - never more than one in a request.

### Request body

JSON; unknown fields are refused.

- `access_channel_list` (array of string, required) - The ways in to allow: panel (customer panel), rest (API), mcp (AI agents). The main access keeps the panel either way. (uniqueItems `true`)

### Response

In `data`; the rest of the body as on every call.

- `account_id` (integer, required) - The customer account - its id is also its customer number.
- `channel_list` (array of string, required) - The ways in the customer allows for the whole account: panel (customer panel), rest (API), mcp (AI agents).
- `is_customized` (boolean, required) - Whether the customer chose the ways in; false: the defaults apply.
- `locked_channel_list` (array of string, required) - The ways in manitu closed - closed whatever channel_list says.

### Statuses

- `200` Success.
- `400` The request does not match the declared input schema.
- `401` No credential was presented, or it was not recognised.
- `403` The credential is not permitted to use this operation.
- `500` The server failed. Nothing about the request was wrong. Whether a change took effect is not known - check before trying it again.
- `503` The channel this operation forwards through is unavailable.

### Example

```sh
curl -X POST 'https://api.manitu.de/v1/account/access/set' \
  -H 'X-API-Key: $API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"access_channel_list":["panel"]}'
```

## Example result

```json
{
  "account_id": 12345,
  "channel_list": [
    "panel"
  ],
  "is_customized": true,
  "locked_channel_list": [
    "panel"
  ]
}
```
