---
title: "Update config by key"
method: PUT
path: "/config/{key}"
tags: ["Configuration Management"]
---

# Update config by key

`PUT /config/{key}`

Set a config item with the specified key.

## Path parameters

- `key` string, required

## Request body

- Config
  - `key` string, required — key for the config item.
  - `value` union, required
    - string
    - boolean
    - integer
    - number
    - object
    - union[]
      - union
        - string
        - number
        - boolean
        - object

## Response `200`

OK

## Changes

- **2024-10-02** `c9062e3a3c54` — 1 info
  - the endpoint scheme security `jwt` was added to the API
- **2024-10-02** `936529d30a41` — 1 info
  - the endpoint scheme security `jwt` was removed from the API
- **2024-09-18** `041ec1a0e403` — 2 info
  - the endpoint scheme security `jwt` was added to the API
  - the endpoint scheme security `cookieAuth` was removed from the API
- **2024-08-08** `d53276437f78` — 1 info
  - the endpoint scheme security `cookieAuth` was added to the API
- **2024-06-07** `5ea1c0d602b9` — 2 breaking
  - added the pattern `^[a-zA-Z0-9_]+$` to the `path` request parameter `key`
  - added the pattern `^[a-zA-Z0-9_]+$` to the request property `key`

[Full history](https://skmtc.dev/pai-os/apis/personal-artificial-intelligence-operating-system-pai-os-api/changes/config/:key/put.md)

---

[API](https://skmtc.dev/pai-os/apis/personal-artificial-intelligence-operating-system-pai-os-api.md) · [All operations](https://skmtc.dev/pai-os/apis/personal-artificial-intelligence-operating-system-pai-os-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pai-os/personal-artificial-intelligence-operating-system-pai-os-api/revisions/3c144b366e19/schema)
