---
title: "POST /configs/{id}/update"
method: POST
path: "/configs/{id}/update"
---

# POST /configs/{id}/update

`POST /configs/{id}/update`

Update a Config

## Path parameters

- `id` string, required

## Query parameters

- `version` integer, required

## Request body

- ConfigSpec
  - `Name` string — User-defined name of the config.
  - `Labels` object — User-defined key/value metadata.
  - `Data` string — Data is the data to store as a config, formatted as a standard base64-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-4)) string. The maximum allowed size is 1000KB, as defined in [MaxConfigSize](https://pkg.go.dev/github.com/moby/swarmkit/v2
  - `Templating` Driver — Driver represents a driver (network, logging, secrets).
    - `Name` string, required — Name of the driver.
    - `Options` object — Key/value map of driver-specific options.

## Response `204`

There is no content to send for this request, but the headers may be useful.

---

[API](https://skmtc.net/hexlet/apis/docker-engine-api.md) · [All operations](https://skmtc.net/hexlet/apis/docker-engine-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hexlet/docker-engine-api/versions/7dbd508c79cf/schema)
