PUT Notification Webhook Webhook Id
Update specified webhook configuration.
The UUID of the webhook
{
"proxyId": "760b1a86-e590-4890-939b-c504c491a072",
"URLs": [
"https://hooks.test.com/services/T024JFTN4/B01SGHM16H5/kQjkrkIjgurn9buzOaizuj6O"
],
"destinationApp": "custom",
"contentType": "JSON",
"payload": "{\n \"alert_type\": \"${AlertType}\",\n \"alert_name\": \"${AlertName}\",\n \"search_period\": \"${SearchPeriod}\",\n \"hit_oeprator\": \"${HitOperator}\",\n \"messages\": \"${messagesString}\"\n}",
"headers": "{\"Action\":\"POST\",\"contentType\":\"application/json\"}",
"name": "test",
"acceptCert": false,
"sendIndividualLogs": false
}
Web proxy configuration ID.
Webhook configuration URLs.
Webhook configuration destination. Possible values are - pagerduty, slack, vro, custom.
Webhook configuration content type for sending data to webhook destination. Possible values are - json, xml.
Webhook configuration payload for sending data to webhook destination.
Webhook configuration name.
Webhook configuration headers for sending data to webhook destination.
Webhook configuration destination certificate trust policy.
Webhook configuration for sending individual or combined notification for logs.
Successfully updated webhook information.
{
"id": "760b1a86-e590-4890-939b-c504c491a072",
"proxyId": "760b1a86-e590-4890-939b-c504c491a072",
"URLs": [
"https://hooks.test.com/services/T024JFTN4/B01SGHM16H5/kQjkrkIjgurn9buzOaizuj6O"
],
"destinationApp": "custom",
"contentType": "JSON",
"payload": "{\n \"alert_type\": \"${AlertType}\",\n \"alert_name\": \"${AlertName}\",\n \"search_period\": \"${SearchPeriod}\",\n \"hit_oeprator\": \"${HitOperator}\",\n \"messages\": \"${messagesString}\"\n}",
"name": "test-hasmik",
"headers": "{\"Action\":\"POST\",\"contentType\":\"application/json\"}",
"acceptCert": false,
"sendIndividualLogs": false
}
Webhook configuration ID.
Web proxy configuration ID.
Webhook configuration URLs.
Webhook configuration destination. Possible values are - pagerduty, slack, vro, custom.
Webhook configuration content type for sending data to webhook destination. Possible values are - json, xml.
Webhook configuration payload for sending data to webhook destination.
Webhook configuration name.
Webhook configuration headers for sending data to webhook destination.
Webhook configuration destination certificate trust policy.
Webhook configuration for sending individual or combined notification for logs.
The request failed because the request body either did not contain valid JSON, or did not match the required JSON format.
{
"errorMessage": "Invalid request body.",
"errorCode": "JSON_FORMAT_ERROR",
"errorDetails": {
"reason": "..."
}
}
A message describing the error.
A code representing the type of error.
Dynamic error details, where the field name can vary depending on the request field and error code.
SSL connection failed.
Internal error while processing the client request
{
"errorMessage": "The operation failed due to an internal error."
}
A message describing the error.
A code representing the type of error.
Dynamic error details, where the field name can vary depending on the request field and error code.
curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/api/v2/notification/webhook/{webhookId}