scheduled-report.updated webhook event
The scheduled-report.updated event fires when an existing scheduled report is changed.
What the event signals
The event type is scheduled-report.updated. It is delivered when a scheduled report is modified. The webhook owner needs the notifications:read scope. The body carries the affected report in the same shape the matching GET endpoint returns, so you can reconcile your local copy without a separate fetch in most cases.
Headers to validate
Every delivery includes a set of headers that identify the event, the delivery and the signature. Treat VT-Signature as the authenticity check, VT-Event-Id as the deduplication key, and VT-Delivery-Id plus VT-Delivery-Attempt as retry tracking. VT-Webhook-Id tells you which registered webhook the delivery belongs to. VT-Event-Type must match the body's type field. The User-Agent value is fixed by the sender.
Body fields
The body is JSON. The top-level fields are id, type, apiVersion, createdAt, companyId, data and an optional apiClient. The type value for this event is scheduled-report.updated. apiVersion is "2". createdAt is an ISO 8601 timestamp. data is the scheduled report object described below. apiClient appears only when the change was made through the API and identifies the key that made it.
Scheduled report object
The data object describes the report. Required fields include id, name, reportType, locationIds, departmentIds, labelIds, receivers, timezone, sendDayOfMonth, sendHourUtc, sendMinuteUtc and creatorId. Optional fields are period, leaveStatus and error. Empty locationIds, departmentIds or labelIds arrays mean all locations, all departments, or users with or without labels respectively. leaveStatus applies only to leaveHistoryReport. error appears only when a send failure has been recorded.
Create, update or delete?
Three scheduled-report events share a similar payload shape. Use the type field to route them. scheduled-report.created signals a new report. scheduled-report.updated signals a change to an existing report. scheduled-report.deleted carries only the ID of the deleted report. A webhook.test event is sent only by test deliveries and cannot be subscribed to.
Worked example: deduplicating a retried delivery
Suppose your endpoint receives a delivery with VT-Event-Id E1 and VT-Delivery-Id D1 at attempt 1. The same change is retried and arrives again with the same VT-Event-Id E1 and the same VT-Delivery-Id D1 but VT-Delivery-Attempt 2. Because the event ID is deterministic for the same change, you can store E1 and skip the second delivery. If a different change arrives, it will have a different event ID even if the delivery ID is new. webhook.test events get a random ID, so do not use them for deduplication logic.
Implementation checklist
- Confirm the webhook owner has notifications:read. 2. Verify VT-Signature against the raw body before parsing. 3. Reject deliveries whose VT-Event-Type does not match the body type. 4. Store VT-Event-Id to skip duplicate deliveries. 5. Use VT-Delivery-Id and VT-Delivery-Attempt to trace retries. 6. Treat empty locationIds, departmentIds or labelIds as all-scope. 7. Read leaveStatus only for leaveHistoryReport. 8. Surface error when present so failed sends are visible.
Frequently asked questions
What triggers a scheduled-report.updated event?
A change to an existing scheduled report. The event type is scheduled-report.updated and the webhook owner needs the notifications:read scope.
How is this different from scheduled-report.created?
scheduled-report.created fires when a new report is created. scheduled-report.updated fires when an existing report is changed. Both use the same payload shape; check the type field to route them.
What does the deleted event carry?
scheduled-report.deleted carries only the ID of the deleted report in data, not the full report object.
What happens to VT-Signature during a secret rotation?
For 24 hours after a secret rotation, the signature header carries a second v1 entry signed with the previous secret, so you can verify against either secret during the overlap.
When is apiClient present?
Only when the change was made through the API. It identifies the API key that made the change, including keyId, optional name and ownerId.
VT-Signature
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
| VT-Signature | string | Yes | t= ,v1= . "> . For 24 hours after a secret rotation it carries a second v1 entry signed with the previous secret. See Signature verification at the top of this document. |
VT-Webhook-Id
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
| VT-Webhook-Id | string | Yes | the ID of the webhook the delivery is for. |
VT-Event-Id
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
| VT-Event-Id | string | Yes | the event ID, the same as id in the body. Use it to skip duplicate deliveries. |
VT-Event-Type
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
| VT-Event-Type | string | Yes | the event type, the same as type in the body. | Allowed values: $3b |
VT-Delivery-Id
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
| VT-Delivery-Id | string | Yes | the delivery ID, unique per delivery and kept across retries of the same delivery. |
VT-Delivery-Attempt
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
| VT-Delivery-Attempt | integer | Yes | the attempt number of this delivery, starting at 1. | 1 <= value |