Docs menu
PATCH
/addons/route-optimization/webhooks/{webhookId}
Activate, deactivate, or rotate a webhook secret
Path
PATCH
/api/v1/partners/addons/route-optimization/webhooks/{webhookId}Authentication required
api-keycurl example
curl -X PATCH "https://api.route4green.com/api/v1/partners/addons/route-optimization/webhooks/{webhookId}" \
-H "api-key: YOUR_API_KEY" \
-H "content-type: application/json" \
-d '{
"is_active": false,
"rotate_secret": false
}'Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| webhookId | path | number | Yes |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
| is_active | boolean | No | Enable or disable delivery to this webhook |
| rotate_secret | boolean | No | Set true to rotate the webhook signing secret; the previous secret stops verifying immediately |
2 fieldsUpdateRouteOptimizationWebhookDto
Responses
404ROUTE_OPT_WEBHOOK_NOT_FOUND