Skip to content

schedule.swap_decided

schedule.swap_decided

Sent to endpoints subscribed to schedule.swap_decided (Settings › Webhooks). Severity info.

Verify the signature before trusting the body; see webhooks.

data

Field Type Description
swapId string The shift swap or give-away (Schedule › Requests)
shiftId string The shift (Schedule)
dateLocal string Local date of the shift, YYYY-MM-DD
status "approved" | "declined" The study's status once viewable; for case.callback.changed, the call back's state: open, acknowledged, done or not_needed; for qc.unit.status_changed, the unit's status: in_service, limited or out_of_service
auto boolean True when the practice auto-approved the swap
fromMember string The member giving the shift away
toMember string The member taking the shift
notify array Members this event is addressed to

Example

{
  "id": "evt_01JA2Z6Q7Y9K3M5N8P0R2S4TWX",
  "type": "schedule.swap_decided",
  "version": 1,
  "tenantId": "01JA2Z6Q7Y9K3M5N8P0R2S4TTV",
  "occurredAt": 1792161000000,
  "severity": "info",
  "data": {
    "swapId": "01JA2Z6Q7Y9K3M5N8P0R2S4TSW",
    "shiftId": "01JA2Z6Q7Y9K3M5N8P0R2S4TSH",
    "dateLocal": "2026-12-05",
    "status": "approved",
    "auto": false,
    "fromMember": "01JA2Z6Q7Y9K3M5N8P0R2S4T5E",
    "toMember": "01JA2Z6Q7Y9K3M5N8P0R2S4T6F",
    "notify": [
      "01JA2Z6Q7Y9K3M5N8P0R2S4T5E",
      "01JA2Z6Q7Y9K3M5N8P0R2S4T6F"
    ]
  },
  "links": {
    "app": "https://app.pacspilot.com/reader-schedule?from=2026-12-05"
  }
}

Verify the signature · All event types