Skip to navigation

Update Sync

Updates a model sync’s configuration.

Updating a model sync is a full replacement of the sync’s configuration. Every field in the request body is written to the sync; any field you omit is cleared or reset to its default value.

To make a partial change — for example, toggling active or adjusting a single field mapping — fetch the current sync with GET /api/syncs/{id}, modify the fields you want to change, and send the complete object back in the update request.

Updates to active, schedule, and policies take effect immediately. Changes to source fields, target configuration, filters, or field mappings take effect on the sync’s next execution.

Authentication

AuthorizationBearer
Bearer user API key
OR
AuthorizationBasic

Basic organization-scoped API key

Path parameters

idstringRequiredformat: "uuid"
Model sync ID

Headers

X-Polytomic-VersionstringOptional

Request

This endpoint expects an object.
fieldslist of objectsRequired
Fields to sync from source to destination
modeenumRequired
How source records are written to the target
namestringRequired
Name of the model sync
scheduleobjectRequired
Sync schedule. Schedule times are interpreted in UTC.
targetobjectRequired
Sync destination configuration
activebooleanOptional
Whether the sync is enabled and scheduled
encryption_passphrasestringOptional
Passphrase for encrypting the sync data
identitiesobjectOptional

Identity mappings for the sync and the strategy combining them, replacing any the sync has. When this is omitted, ‘identity’ is used instead; updating a sync with more than one mapping requires this property.

model_filtersobjectOptional
Filters narrowing the records read from the source. When either filter object is present it governs both kinds, and an absent object means that kind has no filters.
only_enrich_updatesbooleanOptional
Whether to use enrichment models as a source of possible changes to sync. If true, only changes to the base models will cause a record to sync.
organization_idstring or nullOptionalformat: "uuid"

Organization ID for the sync; read-only with a partner key

override_fieldslist of objects or nullOptional
Target fields which are set to a fixed value for every record, rather than mapped from a model field
overrideslist of objects or nullOptional
Conditional value replacement for fields
policieslist of strings or nullOptional
Permissions policy IDs to apply to the sync
skip_initial_backfillbooleanOptional

Whether to skip the initial backfill of records; if true only records seen after the sync is enabled will be synced.

sync_all_recordsbooleanOptional
Whether to sync all records from the source, regardless of whether they've changed since the previous execution
target_filtersobjectOptional
Filters narrowing the records written to the destination. When either filter object is present it governs both kinds, and an absent object means that kind has no filters.
filter_logicstringOptionalDeprecated

Deprecated. Use ‘model_filters.logic’. Combines the model filters in ‘filters’ only.

filterslist of objects or nullOptionalDeprecated

Deprecated. Use ‘model_filters.conditions’ and ‘target_filters.conditions’, which say which kind each condition is rather than inferring it. Ignored when either of those is present, except that a request carrying both shapes is rejected if they describe different filters.

identityobjectOptionalDeprecated
Deprecated. Use 'identities'. Reports and accepts the first identity mapping only.

Response

OK
dataobjectOptional
The model sync

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error