Zum Hauptinhalt springen

Dry run a webhook with random or given values

POST /v2/contributors/{contributorId}/extensions/{extensionId}/extension-instances/{extensionInstanceId}/actions/dry-run/{webhookKind}/
v2
POST
extension-dry-run-webhook

Request

  • contributorIdstring
    required
  • extensionIdstring (uuid)
    required
  • extensionInstanceIdstring (uuid)
    required

    The ID of an extension instance. For this route it can be made up.

  • webhookKindstring (one of: extension-added-to-context, extension-instance-updated, extension-instance-secret-rotated, extension-instance-removed-from-context)
    required

Responses

application/json

The webhook has been run successfully.

  • errorMessagestring

    The error message of an internal error.

  • responseBodystring
  • responseCodenumber

    The http status code that the external application responded with.

  • responseHeadersstring
  • routeCalledstring
    required
  • successfulboolean
    required

    This shows if the response of the external application has been accepted as successful.

Usage examples

$ curl \
--fail \
--location \
-X POST \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
https://api.mittwald.de/v2/contributors/string/extensions/f0f86186-0a5a-45b2-aa33-502777496347/extension-instances/f0f86186-0a5a-45b2-aa33-502777496347/actions/dry-run/extension-added-to-context?contextId=string&scopes=string&instanceDisabled=true&createdAt=2024-09-19T00%3A29%3A15.869Z&secret=string