Creating Webhook with subscope
Sandy T.
✭✭
Hi,
I am trying to create a webhook via payload with the request body like the one below, which is an example from the API document, it failed and returned a HTTP status code 400.
{ "callbackUrl": "https://www.myApp.com/webhooks", "enabled": true, "events": [ "*.*" ], "name": "Webhook for Sheet Creation", "version": 1, "scopeObjectId": 3285357287499652, "scope": "sheet", "subscope": [ { "columnIds": [ 7960873114331012, 8731310160793142 ] } ] }
Response body:
{ "errorCode": 1008, "message": "Unable to parse request. The following error occurred: Field \"subscope\" was of unexpected type.", "refId": "kicl2j" }
Then, I tried to remove the square brackets inside subscope, i.e.:
{ "callbackUrl": "https://www.myApp.com/webhooks", "enabled": true, "events": [ "*.*" ], "name": "Webhook for Sheet Creation", "version": 1, "scopeObjectId": 3285357287499652, "scope": "sheet", "subscope": { "columnIds": [ 7960873114331012, 8731310160793142 ] } }
It also failed and returned a HTTP status code 400.
Response body:
{ "errorCode": 1032, "message": "The attribute(s) webhook.enabled are not allowed for this operation.", "refId": "9o8wuo" }
Does anyone have any clues?
Does the column type matters? The column types I used include "PICKLIST" and "CONTACT_LIST".
Tags:
Best Answer
-
Problem solved after deleted
"enabled": true
Answers
-
Problem solved after deleted
"enabled": true
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 494 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives