# Change marketing settings

> Whether manitu may send news and offers by mail; the partner programme.

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

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

## MCP tool

`manitu_account_marketing_set`

### Description for the model

Sets whether manitu may send news and offers by mail to the manitu customer account this connection works in (mailing_misc), and whether the account takes part in manitu's partner programme (affiliate_partner); send only what is to change. Notices about the account's own services and invoices are sent either way. Only when the customer asks for exactly this - it is his consent to advertising; say what will change and ask for an explicit yes first. Returns the settings as manitu_account_marketing_get shows them. Refused if this access may not change the account's base data.

### Arguments

- `mailing_misc` (boolean) - true: manitu may send news and offers by mail; false: not.
- `affiliate_partner` (boolean) - true: the account takes part in the partner programme and gets an id (an existing one stays); false: it leaves it, the id is gone.

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "manitu_account_marketing_set",
    "arguments": {}
  }
}
```

## REST

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

### Authentication

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

### Request body

JSON; unknown fields are refused.

Send at least 1 field(s).

- `mailing_misc` (boolean) - true: manitu may send news and offers by mail; false: not.
- `affiliate_partner` (boolean) - true: the account takes part in the partner programme and gets an id (an existing one stays); false: it leaves it, the id is gone.

### 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.
- `mailing_misc` (boolean, required) - Whether manitu may send news and offers by mail. Notices about the account's own services and invoices are sent either way.
- `affiliate_partner_id` (string | null, required) - The account's id in manitu's partner programme; null: not taking part.

### 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/marketing/set' \
  -H 'X-API-Key: $API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{}'
```

## Example result

```json
{
  "account_id": 12345,
  "mailing_misc": true,
  "affiliate_partner_id": "string"
}
```
