Create a New Subscription

developertools

#1

is there a particular reason why we can’t submit webhook subscriptions in bulk as an array?

POST https://api.hubapi.com/webhooks/v1/<<appId>>/subscriptions

[
{
  "subscriptionDetails" : {
     "subscriptionType" : "contact.propertyChange",
     "propertyName" : "hs_emailconfirmationstatus"
  },
  "enabled" : true
},
{
  "subscriptionDetails" : {
     "subscriptionType" : "contact.propertyChange",
     "propertyName" : "hs_email_optout"
  },
  "enabled" : true
},
{
  "subscriptionDetails" : {
     "subscriptionType" : "contact.propertyChange",
     "propertyName" : "hubspot_owner_id"
  },
  "enabled" : true
}
]