---
title: "Set a config field"
method: POST
path: "/workspaces/{id}/config/set"
tags: ["config"]
---

# Set a config field

`POST /workspaces/{id}/config/set`

## Path parameters

- `id` string, required

## Request body

- ProtoConfigSetRequest
  - `key` string
  - `scope` 0 | 1
  - `value` unknown

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error

---

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