Update schedules
Changed onUpdates one or more existing schedules with new timing, data, or other properties. All specified schedule IDs will be updated with the same values. This endpoint also handles inline identifications for the actor, recipient, and tenant fields.
Request
- Base URL: https://api.knock.app
- URL: https://api.knock.app/v1/schedules
- Auth: HTTP bearer
Request body
Example request
{
"actor": null,
"data": {
"key": "value"
},
"ending_at": null,
"repeats": [
{
"__typename": "ScheduleRepeat",
"day_of_month": null,
"days": [
"mon",
"tue",
"wed",
"thu",
"fri",
"sat",
"sun"
],
"frequency": "daily",
"hours": null,
"interval": 1,
"minutes": null
}
],
"schedule_ids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"scheduled_at": null,
"tenant": "acme_corp"
}Response
OK
Example response
[
{
"__typename": "Schedule",
"actor": null,
"data": null,
"id": "123e4567-e89b-12d3-a456-426614174000",
"inserted_at": "2021-01-01T00:00:00Z",
"last_occurrence_at": null,
"next_occurrence_at": null,
"recipient": {
"__typename": "User",
"avatar": null,
"created_at": null,
"email": "jane@ingen.net",
"id": "jane",
"name": "Jane Doe",
"phone_number": null,
"timezone": null,
"updated_at": "2024-05-22T12:00:00Z"
},
"repeats": [
{
"__typename": "ScheduleRepeat",
"day_of_month": null,
"days": [
"mon",
"tue",
"wed",
"thu",
"fri",
"sat",
"sun"
],
"frequency": "daily",
"hours": null,
"interval": 1,
"minutes": null
}
],
"tenant": null,
"updated_at": "2021-01-01T00:00:00Z",
"workflow": "workflow_123"
}
]Changes
- info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
//////////
- info
- breaking
the request property
//////became not nullable - breaking
the request property
//////became not nullable - breaking
the
//////request property type changed frombooleanto no type - breaking
the
//////request property type changed frombooleanto no type - info
added
subschema #1subschema #3to the//////request propertyanyOflist - info
added
subschema #1subschema #3to the//////request propertyanyOflist
- breaking