---
title: "Update kimi-cli config.toml"
method: PUT
path: "/api/config/toml"
tags: ["config"]
---

# Update kimi-cli config.toml

`PUT /api/config/toml`

Update kimi-cli config.toml.

## Request body

- UpdateConfigTomlRequest — Request to update config.toml.
  - `content` string, required — New TOML content

## Response `200`

Successful Response

- UpdateConfigTomlResponse — Response after updating config.toml.
  - `success` boolean, required — Whether the update was successful
  - `error` string, nullable — Error message if failed

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/moonshotai/apis/kimi-code-cli-web-interface.md) · [All operations](https://skmtc.dev/moonshotai/apis/kimi-code-cli-web-interface/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/moonshotai/kimi-code-cli-web-interface/revisions/8eac348b2e66/schema)
