我尝试PATCH
我现有的webhook(已编辑webhook_id
,以及所有object_ids
的隐私权以及ACCESS_TOKEN
,他们都是正确的curl
。当我提交时,我收到此错误:
{"错误":{" docs":" https://developer.surveymonkey.com/api/v3/#error-codes"," message":"哦香蕉!我们无法处理您的请求。"," id":" 1050"," name":"内部服务器错误&# 34;," http_status_code":500}}
这是我的要求(我也试过curl --request PATCH
):
curl -X PATCH
-H "Authorization:bearer ACCESS_TOKEN"
-H "Content-Type":"application/json"
https://api.surveymonkey.net/v3/webhooks/{id} -d \
'{
"object_type":"survey",
"object_ids":["123","456","789"]
}'
我添加了object_type
,因为没有它就会抛出错误,表示找不到具有该ID的collector
。我可以删除webhook并重新创建它,但它很烦人,我不能让PATCH工作。
编辑:在终端中运行此功能,当我这样做时,我没有相同的间距,为了便于阅读,我这样做了