创建带有子作用域的Webhook
你好,
我试图通过有效载荷创建一个webhook,请求体如下所示,这是API文档中的一个例子,它失败了,并返回了一个HTTP状态码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]}]}
身体反应:
{"errorCode": 1008, "message": "无法解析请求。发生以下错误:字段“subscope”的类型出乎意料。","refId": "kicl2j"}
然后,我试图删除子范围内的方括号,即:
{"callbackUrl": "https://www.myApp.com/webhooks", "enabled": true, "events": ["*.]*"], "name": "Webhook for Sheet Creation", "version": 1, "scopeObjectId": 3285357287499652, "scope": " Sheet ", "subscope": {"columnIds": [7960873114331012, 8731310160793142]}}
它也失败了,返回了一个HTTP状态码400。
身体反应:
{"errorCode": 1032, "message": " webhook属性"。, "refId": " 908wuo "}
有人知道什么线索吗?
列的类型重要吗?我使用的列类型包括“PICKLIST”和“CONTACT_LIST”。
标签:
最佳答案
-
桑迪T。 ✭
删除后问题解决
“启用”:真的
答案
-
桑迪T。 ✭
删除后问题解决
“启用”:真的
类别
Hi @Shravan A<\/a> <\/p>
Smartsheet publishes a DNS A record at aws.relay.smartsheet.com which can be added to the Allowlist in your firewall. We recommend using the DNS record and not<\/strong> IP addresses because our IP addresses may change in the future. <\/p>
Here's the link to Authenticating Webhooks<\/a> in the API documentation. <\/p>