curl -X POST 'https://api.hydradb.com/connectors/{connector_id}/sync' \
-H "Authorization: Bearer $HYDRA_DB_API_KEY" \
-H "API-Version: 2"
{
"run_id": "{run_id}",
"workflow_id": "connector-sync-{connector_id}"
}
Connectors
Sync Connector
Trigger an on-demand sync for a connector.
POST
/
connectors
/
{id}
/
sync
curl -X POST 'https://api.hydradb.com/connectors/{connector_id}/sync' \
-H "Authorization: Bearer $HYDRA_DB_API_KEY" \
-H "API-Version: 2"
{
"run_id": "{run_id}",
"workflow_id": "connector-sync-{connector_id}"
}
Starts an immediate sync for all configured resources. Syncs also run on a schedule (default: hourly), so this endpoint is only needed when you want to force a sync outside the normal cadence.
curl -X POST 'https://api.hydradb.com/connectors/{connector_id}/sync' \
-H "Authorization: Bearer $HYDRA_DB_API_KEY" \
-H "API-Version: 2"
Path parameters
| Name | Description |
|---|---|
id | Connector UUID returned by POST /connectors. |
{
"run_id": "{run_id}",
"workflow_id": "connector-sync-{connector_id}"
}
202 means the sync was queued, not that it completed. Poll Connector Resources and check that provider_cursor advances to confirm the sync ran.
Related Resources
- Connector Resources - poll
provider_cursorto confirm sync completion - Configure Connector - activate resources before syncing
Was this page helpful?
