Skip to main content

Create or rotate pull-image webhook token

POST/v2/stacks/{stackId}/services/{serviceId}/webhook-token/
v2
POST
container-rotate-pull-image-webhook-for-service

Creates or rotates the pull-image webhook token for a Service.

The returned token is shown only once.

Request

  • stackIdstring (uuid)
    required

    ID of the Stack the Service belongs to.

  • serviceIdstring
    required

    ID of the Service to create or rotate the webhook token for.

Responses

application/json

OK

  • tokenstring
    required

    Webhook token. This value is returned only once.

  • webhookUrlstring (uri)
    required

    Full pull-image webhook URL including the token. This value is returned only once.

Usage examples

$ curl \
--fail \
--location \
-X POST \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
https://api.mittwald.de/v2/stacks/f0f86186-0a5a-45b2-aa33-502777496347/services/string/webhook-token