cargopanel logocargopanel for developers

Update Webhook

PATCHhttps://api.cargopanel.co/v1/webhooks/:id

Partially update a webhook. Send only the fields you want to change. Use isActive to pause (false) or resume (true) deliveries.

Path Parameters

idstringrequired

Webhook ID.

Request Fields

urlstringoptional

New HTTPS URL. Validated with the same rules as on create.

eventsstring[]optional

Replaces the subscribed event list (must not be empty).

headersobjectoptional

Replaces the custom X-* headers.

isActivebooleanoptional

Activate 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