---
title: "Update user chat compaction threshold"
method: PUT
path: "/api/v2/chats/config/user-compaction-thresholds/{modelConfig}"
tags: ["Chats"]
---

# Update user chat compaction threshold

`PUT /api/v2/chats/config/user-compaction-thresholds/{modelConfig}`

## Path parameters

- `modelConfig` string, uuid, required

## Request body

- CodersdkUpdateUserChatCompactionThresholdRequest
  - `threshold_percent` integer

## Response `200`

OK

- CodersdkUserChatCompactionThreshold
  - `model_config_id` string, uuid
  - `threshold_percent` integer

---

[API](https://skmtc.dev/coder/apis/coder-api.md) · [All operations](https://skmtc.dev/coder/apis/coder-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/coder/coder-api/revisions/369ae60ab00e/schema)
