---
title: "Update chat advisor config"
method: PUT
path: "/api/v2/chats/config/advisor"
tags: ["Chats"]
---

# Update chat advisor config

`PUT /api/v2/chats/config/advisor`

## Request

- Base URL: `/` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v2/chats/config/advisor`
- Auth: API key in header `Coder-Session-Token`

## Request body

- CodersdkUpdateAdvisorConfigRequest
  - `max_output_tokens` integer
  - `max_uses_per_run` integer

## Response `204`

No Content

## Other responses

- `400`: Bad Request
- `403`: Forbidden

## Changes

- **2026-10-29** `7d576694dd12`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/coder/apis/coder-api/changes/api/v2/chats/config/advisor/put.md)

---

[API](https://skmtc.dev/coder/apis/coder-api.md) - [All operations](https://skmtc.dev/coder/apis/coder-api/llms.txt) - [OpenAPI document](https://skmtc.dev/coder/apis/coder-api/revisions/4669d93796ab?raw)
