Pause a Sync

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
📘

What happens when you pause a sync

By default (without killOngoingSync or pauseWebhooks), pausing only pauses the scheduler — the next scheduled sync will not run. Any events from a previously running sync will still keep flowing to your webhook.

Use the optional params below to change this behavior:

  • killOngoingSync: true — immediately terminates the in-progress sync, so its events stop as well (in addition to pausing the scheduler).
  • pauseWebhooks: true — pauses webhook delivery, so no events reach your endpoint while the sync is paused.
🚧

You can only pause the scheduler by itself when no sync is currently in progress. If a sync is ongoing and you call this API without killOngoingSync or pauseWebhooks, the API returns an error — you must pass at least one of these params to tell Knit how to handle the in-progress sync.

Param combinations

killOngoingSyncpauseWebhooksResult
false (default)false (default)Pauses the scheduler. Errors if a sync is currently in progress — allowed only when no sync is ongoing.
truefalseScheduler paused and ongoing sync terminated; webhooks still active.
falsetrueScheduler paused; ongoing sync continues but its events are not delivered (webhooks paused).
truetrueFull stop: scheduler paused, ongoing sync terminated, webhook delivery paused.

Body Params
string
required

The sync job id that needs to be paused

boolean
Defaults to false

When true, immediately terminates the sync that is currently in progress. Defaults to false, in which case the ongoing sync continues to completion and its events keep flowing to your webhook.

boolean
Defaults to false

When true, pauses webhook delivery so no events reach your endpoint while the sync is paused. Defaults to false, in which case events from any ongoing sync are still delivered.

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json