Zum Hauptinhalt springen

Add a template component to a Stack

POST/v2/stacks/{stackId}/actions/add-template-component/
API version
v2
Request method
POST
Operation ID
container-add-template-component

Request

  • stackIdstring (uuid)
    required

    ID of the Stack where the component should be added.

Responses

Kein Request-Inhalt spezifiziert.

Usage examples

$ curl \
--fail \
--location \
-X POST \
-d '{"templateConfig":{"templateId":"postgres","userInputs":[{"name":"HOST","value":"postgres.example.org"}]}}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/stacks/f0f86186-0a5a-45b2-aa33-502777496347/actions/add-template-component