Hi team,
I am trying to create a webhook v3 subscription with an account reference filter. When I send the below POST body in the request,
{
“webhook_subscription”: {
“delivery_method”: {
“type”: “http_delivery_method”,
“URL”: “,”
},
“description”: “Sends PagerDuty v3 webhook events to Fivetran PagerDuty Webhook Connector”,
“events”: [
“incident.acknowledged”,
“incident.annotated”,
“incident.delegated”,
“incident.escalated”,
“incident.priority_updated”,
“incident.reassigned”,
“incident.reopened”,
“incident.resolved”,
“incident.responder.added”,
“incident.responder.replied”,
“incident.triggered”,
“incident.unacknowledged”
],
“filter”: {
“id”: “<account_id>”,
“type”: “account_reference”
},
“type”: “webhook_subscription”
}
}
I get the following error
{
“errors”: {
“webhook_subscription”: {
“filter”: {
“id”: [
“must be nil for an account-level subscription”
]
}
}
}
}
If I update the filter id value to be “”, I get
{
“errors”: {
“detail”: “Internal Server Error”
}
}
And if I try values “null” or “nil” I still get “must be nil for an account-level subscription”.
What am I doing wrong here?
Thanks,
Dustin