v3

latestOpenAPI 3.0.0raw.githubusercontent.com2026-02-14107155281.0 KB

Update a Config

post/configs/{id}/update

Path parameters

idstring required

Query parameters

versioninteger required

Request body

Namestring

User-defined name of the config.

Labelsobject

User-defined key/value metadata.

Datastring

Data is the data to store as a config, formatted as a standard base64-encoded (RFC 4648) string. The maximum allowed size is 1000KB, as defined in [MaxConfigSize](https://pkg.go.dev/github.com/moby/swarmkit/v2

Response

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