Docs
Live demo
POST/api/v2/connectors/{id}/sync

Trigger an immediate synchronization for a connector

Parameters

Path1 required of 1
idstringpathrequired

Connector ID (UUID)

Request body application/json · TriggerSyncRequest

Sync options

Optional1 field
dry_runboolean

Responses

202

Accepted

TriggerSyncResponse · 1 field
409

Conflict - the connector is paused (connector.paused). Nothing was queued. Resume the connector, then run the sync. Code operation.already_running: a sync of the connector already runs or waits for its next attempt. Nothing was queued. details.existing_job_id and resources (relation running_operation) name that job, details.started_at is when it was started, details.next_attempt_at when a job that waits between attempts tries again, and resolution.code operation.view_running opens it. The same request is accepted again after that job ends. A dry run is not refused and does not block a sync.

422

Unprocessable Entity - connector.type_unavailable when Principal can't sync this connector type yet (coming_soon in GET /connectors/types). Nothing was queued.

Common errors: 400 401 403 404 413 429 503 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close