Skip to content

Integration.sync

POST /{namespace}/integrations/{integration}/sync

Sync exchanges records between a System and its connector, and the declared leader wins every conflict.

Mode
do
Event
Integration.synced

Inputs

InputTypeRequiredDescription
integrationIntegrationrequiredThe connector to sync.

Outputs

OutputTypeRequiredDescription
integrationIntegrationrequiredThe Integration with its sync cursor moved.

Effects

  • Emits Integration.synced.
  • Performed by the Reliability Engineer.
  • In mirror, an outside edit to a mirrored field is overwritten and recorded as an Action that ends refused.
  • In import, each outside edit becomes one Change or Action, checked like any other.

Refuses when

CheckErrorFixThen call
The request carries no key, or its key is expired or revoked.unauthorizedSign in again, or send a current key as a bearer token.Integration.sync
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.Integration.sync
The record is not in a state that allows this Verb, so the call is refused.refusedRead the record, run the Verb that moves it to an allowed state, then retry.Integration.sync
The caller sent more requests than its rate allows.rate-limitedWait the number of seconds in the Retry-After header, then retry.Integration.sync

When it waits

GateDefault
Decision classLow: two-way, nothing at stake
Delay windowNone: it runs once review passes.
LimitThe call Limit of the Permission it runs under.
Over the LimitIt waits pending for an Approval from the Founder. Approved, it runs; refused, it ends refused with limit-exceeded; unanswered by its deadline, it ends canceled.