Skip to main content
PUT
Set Default Sync Policy

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

How often a connection syncs, on which local weekdays, in which timezone.

intervalMinutes
integer
required
weekdays
integer[]
timezone
string
default:UTC

Response

Successful Response

A saved sync policy, with the intervals a UI may offer, so it hard-codes none.

level is default for the owner's default and connection for one connection's own policy. On a connection's routes held_by names the level that holds it paused: a paused default holds it even when its own row is not. Times are UTC.

level
enum<string>
required
Available options:
default,
connection
intervalMinutes
integer
required
weekdays
integer[]
required
timezone
string
required
paused
boolean
required
pausedBy
string<uuid> | null
required
pausedAt
string<date-time> | null
required
nextDueAt
string<date-time> | null
required
heldBy
enum<string> | null
Available options:
default,
connection
intervalPresets
integer[]
customHours
integer[]