PUT Request
curl -X PUT "https://onfleet.com/api/v2/webhooks/TKAfF~o5LH5Rrkqni64vhUOo" \
-u "cd3b3de84cc1ee040bf06512d233719c:" -d '{"url": "https://yourwebhook-free.app/webhooks","trigger": 0,"canReceiveConnectionEvents": false,"scopedApiKeyId": null}'
{
"id": "TKAfF~o5LH5Rrkqni64vhUOo",
"count": 0,
"url": "https://yourwebhook-free.app/webhooks",
"trigger": 0,
"isEnabled": true,
"scopeId": null,
"canReceiveConnectionEvents": false
}
Scoped API Key IDThis field only matters if the you have an API key that has limited scope. You should always use
null
when submitting the request payload. NoticescopedApiKeyId
in the request, andscopeId
in the response, but onlyscopedApiKeyId
is accepted as a request field