Config
post/configs/create

Request

  • Base URL
    /v1.57 (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    none declared

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.

Example request

{
  "Name": "server.conf",
  "Labels": {
    "foo": "bar"
  },
  "Data": "VEhJUyBJUyBOT1QgQSBSRUFMIENFUlRJRklDQVRFCg=="
}

Response

no error

Idstring required

The id of the newly created object.

Changes

    • breaking

      removed the request body

    • breaking

      removed the success response with the status

    • info

      api tag Config added

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the success response with the status

    • breaking

      request body became required

    • breaking

      the request's body type changed from no type to object

    • breaking

      removed the success response with the status

    • warning

      removed subschema #2 from the request body allOf list

    • info

      api tag Config removed

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      added the success response with the status