How to Set a Custom Sync Frequency
You can override Fivetran's default sync frequency (a sync every 6 hours) for a connection. For more information, see our sync frequency and scheduling documentation.
To set a custom sync frequency using the Fivetran REST API, specify your chosen time interval between syncs in minutes as a value of the sync_frequency parameter in the Update a Connection endpoint request.
We support the following sync intervals (in minutes):
- 1
- 5
- 15
- 30
- 60 (1 hour)
- 120 (2 hours)
- 180 (3 hours)
- 360 (6 hours) - default value
- 480 (8 hours)
- 720 (12 hours)
- 1440 (24 hours)
You can't schedule syncs to run less frequently than once every 24 hours.
For example, to set a custom frequency for connection connection_id_1 to sync every hour (60 minutes), send the following request:
PATCH https://api.fivetran.com/v1/connections/connection_id_1
{
"sync_frequency": 60
}
To avoid scheduled syncs, you can use the REST API to configure your connection so that syncs only run when you trigger them manually. To learn how, see How to Trigger Syncs Manually.