WebhookConfigurationDto

WebhookConfigurationDto
WebhookConfigurationDto
JSON Example
{
    "id": "573ef541-e9cb-475a-8f50-793979d1d9a0",
    "name": "test_webhook_configuration",
    "type": "WEBHOOK",
    "cspOrgId": "e552932c-1274-4495-b7f5-a647f3c0ec69",
    "createdBy": "[email protected]",
    "createdAt": "2023-06-23T08:50:39.055532Z",
    "lastUpdatedBy": "[email protected]",
    "lastUpdatedAt": "2023-06-23T08:50:39.055532Z",
    "url": "https://hooks.slack.com/services/SmafV7DQ1f3zJz4VpraTdT0q",
    "contentType": "application/json",
    "action": "POST",
    "webhookType": "ALERT_NOTIFICATION",
    "userName": "test_user",
    "password": "******",
    "customHeaders": {
        "Authorization": "Bearer LQSe7oYM1tjf770o6cQPIQAmaha6Eyu9"
    },
    "endpointType": "SLACK",
    "endpointProperties": {
        "Authorization": "Bearer LQSe7oYM1tjf770o6cQPIQAmaha6Eyu9"
    },
    "force": false
}
string
id
Optional

Unique notification configuration identifier

string
name
Required

Unique notification configuration name

string
type
Required

Unique notification configuration name

Possible values are : EMAIL, WEBHOOK,
string
cspOrgId
Optional

Associated org with the notification

string
createdBy
Optional

Email of user who created this notification

string As date-time As date-time
createdAt
Optional

Time at which notification was created

string
lastUpdatedBy
Optional

Email of user who updated this notification

string As date-time As date-time
lastUpdatedAt
Optional

Time at which notification was last updated

string
url
Required

Destination url of the webhook notification.

string
contentType
Required

Indicates the original media type of the webhook payload

payload
Required

payload

string
action
Optional

Indicates the webhook action i.e. create or update the configuration

Possible values are : POST, PUT,
string
webhookType
Required

Indicates the webhook notification type.

Possible values are : ALERT_NOTIFICATION, SYSTEM_ALERT_NOTIFICATION,
string
userName
Optional

Email of user who created this notification

string
password
Optional

password

customHeaders
Optional

customHeaders

string
endpointType
Optional

Indicates the webhook notification endpoint.

Possible values are : SLACK, PAGERDUTY_V1_API, PAGERDUTY_V2_API, DATADOG, VICTOROPS, OTHERS,
endpointProperties
Optional

endpointProperties

boolean
force
Optional

It represents other objects in the system have referential dependencies on this webhook. Saving changes to this webhook may cause behavioral changes in other objects.Before saving this change, be sure there are no unintended consequences on the following objects, as the previous state of this webhook can’t be retrieved. If you still want to save changes to this notification then set this parameter ‘force’ as value ’true’ with the request body while calling this Api