---
title: "Create Or Update Controller Config"
method: POST
path: "/controllers/configs/{config_name}"
tags: ["Controllers"]
---

# Create Or Update Controller Config

`POST /controllers/configs/{config_name}`

Create or update controller configuration.

Args:
    config_name: Name of the configuration file
    config: Configuration dictionary to save

Returns:
    Success message when configuration is saved

Raises:
    HTTPException: 400 if save error occurs

## Path parameters

- `config_name` string, required

## Request body

- object

## Response `201`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2026-04-08** `92703f48a69e` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2026-01-18** `2ad95b6a84b2` — 1 breaking
  - the response's body type/format changed from `object`/`` to ``/`` for status `201`
- **2026-01-18** `576ec8539f76` — 1 breaking
  - the response's body type/format changed from ``/`` to `object`/`` for status `201`
- **2025-12-20** `1005bcd47280` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/hummingbot/apis/hummingbot-api/changes/controllers/configs/:config_name/post.md)

---

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