v3

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

Create a config

post/configs/create

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

The request has succeeded.

Idstring required

The id of the newly created object.