# Update Personalization Preferences

`PUT /api/governance/preferences`

### Overview
Updates preferred user name, conversational response style, and custom instructions.

### Authentication & Headers
- **Auth**: Bearer Token
- **Required Header**: `API-Version: 1`

### Parameters & Request Body Fields
- **`preferred_name`** *(string, optional)*: How the AI agent should address the user.
- **`response_style`** *(string, optional)*: Desired style (`concise_bullet_points`, `formal`, `elaborate`).
- **`custom_instruction`** *(string, optional)*: Custom guidance appended to interactive prompts.

## Request body

Content type: `application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `preferred_name` | string \| null | no |  |
| `personal_instruction` | string \| null | no |  |
| `response_style` | enum \| null | no |  |
| `default_agent_id` | string \| null | no |  |
| `theme` | enum \| null | no |  |
| `background_preset` | enum \| null | no |  |
| `pet_id` | enum \| null | no |  |
| `custom_background_url` | string \| null | no |  |
| `response_bubble_color` | string \| null | no |  |
| `response_bubble_opacity` | integer \| null | no |  |
| `user_bubble_color` | string \| null | no |  |
| `user_bubble_opacity` | integer \| null | no |  |

```json
{
  "preferred_name": "string",
  "personal_instruction": "string",
  "response_style": "concise",
  "default_agent_id": "string",
  "theme": "system",
  "background_preset": "default",
  "pet_id": "capybara",
  "custom_background_url": "string",
  "response_bubble_color": "string",
  "response_bubble_opacity": 0,
  "user_bubble_color": "string",
  "user_bubble_opacity": 0
}
```

## Responses

### 200 — Preferences updated

### 400 — Bad Request - The request parameters or headers are invalid (e.g. unsupported API-Version).

### 401 — Unauthorized - Missing, invalid, or expired JWT Bearer token.

### 403 — Forbidden - Insufficient role permissions or resource access denied by RBAC policy.

### 404 — Not Found - The requested resource ID was not found.

### 422 — Validation Error

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `detail` | object[] | no |  |
| `detail[].loc` | string | integer[] | yes |  |
| `detail[].msg` | string | yes |  |
| `detail[].type` | string | yes |  |
| `detail[].input` | object | no |  |
| `detail[].ctx` | object | no |  |

```json
{
  "detail": [
    {
      "loc": [
        null
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
```

## Example

```bash
curl -X PUT "$PINTER_URL/api/governance/preferences" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"preferred_name":"string","personal_instruction":"string","response_style":"concise","default_agent_id":"string","theme":"system","background_preset":"default","pet_id":"capybara","custom_background_url":"string","response_bubble_color":"string","response_bubble_opacity":0,"user_bubble_color":"string","user_bubble_opacity":0}'
```
