---
title: "Update Write Mode"
method: PUT
path: "/api/v1/chat-ai/write-mode"
tags: ["chat-ai", "chat_write_mode"]
---

# Update Write Mode

`PUT /api/v1/chat-ai/write-mode`

Set the calling person's autonomy setting.

## Request body

- WriteModeUpdate — A new autonomy setting for the caller. Typed as the ``WriteMode`` Literal, so an unknown value is a 422 from Pydantic rather than a string this route has to check by hand — and rather than a row the DB CHECK rejects much later.
  - `write_mode` 'plan' | 'manual' | 'accept_edits' | 'auto' | 'bypass', required

## Response `200`

Successful Response

- WriteModeRead — The caller's autonomy setting.
  - `write_mode` 'plan' | 'manual' | 'accept_edits' | 'auto' | 'bypass', required

## Other responses

- `401` — Authentication required
- `422` — Validation Error
- `500` — User not found

---

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