How can I use the same webhook URL for subscribing to multiple events using Skyhook?

When creating a Skyhook event subscription using a webhook, multiple events can be subscribed to as shown below:

{       
"Events": [
{
"Name": "Asset.MediaFileAdded"
},
{
"Name": "Asset.StatusUpdated"
},
{
"Name": "Category.AssetsAssigned"
},
{
"Name": "Category.AssetUnassigned"
},
{
"Name": "Asset.KeywordsAdded"
},
{
"Name": "Asset.AttributesAdded"
},
{
"Name": "Asset.VideoRenditionsAdded"
},
{
"Name": "Asset.KeywordRemoved"
}
],
"type": "webhook",
"Data": {
"webhook": "https://www.my-webhookurl.com/myapi"
}
}

 

However, if a subscription was previously created using the same webhook URL, the following error will trigger when trying to create a new subscription using the same endpoint as seen in the example below:

HTTP/1.1 400 Bad Request

Transfer-Encoding: chunked

Content-Type: application/json; charset=utf-8

Request-Context: appId=cid-v1:5a9d6378-d4f4-4698-822b-cd03c961c043

Date: Thu, 08 Sep 2022 13:03:11 GMT




{"Messages":["subscription found with similar data: {{subscriptionID}}"]}

 

In this case, one will need to edit the original subscription created with the same webhook URL to include the updated events.

 

For more information on how to edit subscriptions, click HERE

 

Was this article helpful?
0 out of 0 found this helpful