Update webhook

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 ID

This field only matters if the you have an API key that has limited scope. You should always use null when submitting the request payload. Notice scopedApiKeyId in the request, and scopeId in the response, but only scopedApiKeyId is accepted as a request field