I want to set up a webhook in close whenever my custom activity gets updated or created. The scenario worked the first time I ran it but couldn’t get any data to popular on my custom webhook. So I ran it again and it’s giving me this error RuntimeError [400].
I can’t seem to make it work again.
Here is what I wrote in the body:
{
“url”: “I ADDED MY WEBHOOK URL HERE”,
“events”:
[
{
“object_type”: “activity.custom_activity”,
“action”: “created”,
“extra_filter”: {
“type”: “and”,
“filters”: [
{
“type”: “field_accessor”,
“field”: “data”,
“filter”: {
“type”: “field_accessor”,
“field”: “custom_activity_type_id”,
“filter”: {
“type”: “equals”,
“value”: “actitype_I ADDED ID HERE”
}
}
},
{
“type”: “field_accessor”,
“field”: “data”,
“filter”: {
“type”: “field_accessor”,
“field”: “status”,
“filter”: {
“type”: “equals”,
“value”: “published”
}
}
}
]
}
},
{
“object_type”: “activity.custom_activity”,
“action”: “updated”,
“extra_filter”: {
“type”: “and”,
“filters”: [
{
“type”: “field_accessor”,
“field”: “data”,
“filter”: {
“type”: “field_accessor”,
“field”: “custom_activity_type_id”,
“filter”: {
“type”: “equals”,
“value”: “actitype_I ADDED ID HERE”
}
}
},
{
“type”: “field_accessor”,
“field”: “data”,
“filter”: {
“type”: “field_accessor”,
“field”: “status”,
“filter”: {
“type”: “equals”,
“value”: “published”
}
}
},
{
“type”: “field_accessor”,
“field”: “changed_fields”,
“filter”: {
“type”: “contains”,
“value”: “status”
}
}
]
}
}
]
}