Update Webhook
PATCH
https://api.cargopanel.co/v1/webhooks/:idPartially update a webhook. Send only the fields you want to change. Use isActive to pause (false) or resume (true) deliveries.
Path Parameters
idstringrequiredWebhook ID.
Request Fields
urlstringoptionalNew HTTPS URL. Validated with the same rules as on create.
eventsstring[]optionalReplaces the subscribed event list (must not be empty).
headersobjectoptionalReplaces the custom X-* headers.
isActivebooleanoptionalActivate or deactivate the webhook.
Example Response
200
{
"success": true,
"data": {
"id": "wh_k3j9x2m1q8w7e6r5t4y3u2i1",
"userId": "usr_xyz789",
"apiKeyId": "ck_live_abc123",
"url": "https://example.com/webhooks/cargopanel",
"events": [
"shipment.measurement.adjusted",
"shipment.debt.adjusted"
],
"headers": {
"X-Tenant": "store-42"
},
"isActive": false,
"deletedAt": null,
"hasSecret": true,
"createdAt": "2026-11-10T10:30:00.000Z",
"updatedAt": "2026-11-11T09:00:00.000Z"
}
}Responses
200Webhook updated
400Invalid body or URL not allowed
401Unauthorized (invalid or missing token)
404Webhook not found