Webhooks
WorkSchedule > Schedule > Updates
Subscription_type: work_schedule/schedule/update
postWebhookWebhooks > WorkSchedule > Schedule > Updates
Payload
Example payload
{
"id": "1",
"name": "Morning shift",
"company_id": "1",
"created_at": "2024-01-01T00:00:00.000Z",
"updated_at": "2024-01-01T00:00:00.000Z",
"employee_ids": [
"1",
"2"
],
"periods": [
{
"id": 1,
"schedule_id": 1,
"default": false,
"start_day": 15,
"start_month": 12,
"end_day": 31,
"end_month": 12,
"schedule_type": "flexible"
}
]
}Response
Return a 200 status to indicate that the data was received successfully
Changes
Webhooks have no change history: a webhook is keyed by its event name rather than a path and method, so no recorded change can name it.