Try it free

Update a webhook handler

  • Latest Dynatrace
  • Reference
  • Published Oct 13, 2026

Update a webhook handler in Dynatrace with the AutomationEngine API by connection ID and configure its validation and secret settings.

PUTSaaShttps://{your-environment-id}.apps.dynatrace.com/platform/automation/v1/webhook-handlers/{connectionId}

Overview

You update the webhook handler identified by the connectionId path parameter. The request body can include active, validationMethod, eventSignatureHeader, slackSigningSecret, staticSecret, hmacSignaturePrefix, hmacSignatureEncoding, and hmacSecret, and it returns a 200 response.

Authentication

To execute this request, you need a platform token or OAuth access token with automation:webhookhandlers:write scope. To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
connectionIdstring

The ID of the connection this webhook handler belongs to

pathRequired
bodyWebhookHandlerWrite-bodyRequired

Request body objects

The WebhookHandlerWrite object

ElementTypeDescriptionRequired
activeboolean-Required
validationMethodValidationMethod-
The element can hold these values
  • slack
  • static
  • hmac-sha256
Required
eventSignatureHeaderstring-Required
slackSigningSecretstring-Optional
staticSecretstring-Optional
hmacSignaturePrefixstring-Optional
hmacSignatureEncodingHmacSignatureEncoding-
The element can hold these values
  • hex
  • base64
Optional
hmacSecretstring-Optional

The ValidationMethod object

The HmacSignatureEncoding object

Request body JSON model

This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.

{
"active": true,
"validationMethod": "slack",
"eventSignatureHeader": "string",
"slackSigningSecret": "string",
"staticSecret": "string",
"hmacSignaturePrefix": "string",
"hmacSignatureEncoding": "hex",
"hmacSecret": "string"
}

Response

Response codes

CodeTypeDescription
200WebhookHandler-
4XXErrorEnvelope-

Response body objects

The WebhookHandler object

ElementTypeDescription
connectionIdstring

The connection ID that this webhook corresponds to.

webhookUrlstring-
activeboolean-
validationMethodValidationMethod-
The element can hold these values
  • slack
  • static
  • hmac-sha256
eventSignatureHeaderstring-
slackSigningSecretstring-
staticSecretstring-
hmacSignaturePrefixstring-
hmacSignatureEncodingHmacSignatureEncoding-
The element can hold these values
  • hex
  • base64
hmacSecretstring-

The ValidationMethod object

The HmacSignatureEncoding object

The ErrorEnvelope object

ElementTypeDescription
errorError-

The Error object

ElementTypeDescription
messagestring-
codeinteger-
detailsErrorDetails-

The ErrorDetails object

ElementTypeDescription
errorCodestring-
errorRefstring-

Response body JSON models

{
"connectionId": "string",
"webhookUrl": "string",
"active": true,
"validationMethod": "slack",
"eventSignatureHeader": "string",
"slackSigningSecret": "string",
"staticSecret": "string",
"hmacSignaturePrefix": "string",
"hmacSignatureEncoding": "hex",
"hmacSecret": "string"
}
{
"error": {
"message": "string",
"code": 1,
"details": {
"errorCode": "string",
"errorRef": "string"
}
}
}
Related tags
Platform APIDynatrace Platform