Skip to main content
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 requiredapi-key

curl 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

NameInTypeRequiredDescription
webhookIdpathnumberYes

Request body

FieldTypeRequiredDescription
is_activebooleanNoEnable or disable delivery to this webhook
rotate_secretbooleanNoSet true to rotate the webhook signing secret; the previous secret stops verifying immediately
2 fieldsUpdateRouteOptimizationWebhookDto

Responses

404ROUTE_OPT_WEBHOOK_NOT_FOUND

Back to group: Route optimisation

PATCH /addons/route-optimization/webhooks/{webhookId} | Route4Green