curl -X POST 'https://api.hydradb.com/connectors/{id}/sync' \
-H "Authorization: Bearer $HYDRA_DB_API_KEY" \
-H "API-Version: 2"
{
"workflow_id": "connector-sync-{connector_id}",
"run_id": "{run_id}"
}
Sync Connector
Sync a connector now instead of waiting for its schedule.
POST
/
connectors
/
{id}
/
sync
curl -X POST 'https://api.hydradb.com/connectors/{id}/sync' \
-H "Authorization: Bearer $HYDRA_DB_API_KEY" \
-H "API-Version: 2"
{
"workflow_id": "connector-sync-{connector_id}",
"run_id": "{run_id}"
}
Starts a sync of every configured resource now. Connectors already sync on their own every
sync_interval_seconds (one hour by default), and Configure Connector starts the first sync itself. Call this only when you need fresh data sooner.
A 202 means the sync was started, not that it finished. If a sync is already running, it continues and run_id is empty. Follow progress with Get Connector Status.
curl -X POST 'https://api.hydradb.com/connectors/{id}/sync' \
-H "Authorization: Bearer $HYDRA_DB_API_KEY" \
-H "API-Version: 2"
{
"workflow_id": "connector-sync-{connector_id}",
"run_id": "{run_id}"
}
Errors
404: no connector with this id in your workspace.409: the connector is paused, or it has no active resources to sync. Resume it, or configure resources first.429: your plan’s sync limit is reached for this period.
Related Resources
- Get Connector Status: check that the sync succeeded
- Update Connector: change how often scheduled syncs run
Authorizations
API key sent as a Bearer token: "Bearer prefix.secret"
Path Parameters
Connector ID
Example:
"HydraDoc1234"
Was this page helpful?
