Create Sync
Creates a new model sync.
Create a new sync from one or more models to a destination.
All of the functionality described in the product documentation is configurable via the API.
Guides:
- Model sync (Reverse ETL) from Snowflake query to Salesforce
- Joined model sync from Postgres, Airtable, and Stripe to Hubspot
Targets (Destinations)
Polytomic refers to a model sync’s destination as the “target object”, or target. Target objects are identified by a connection ID and an object ID.
The target object in the request specifies information about the sync destination.
Some connections support additional configuration for targets. For example,
Salesforce
connections
support optionally specifying the ingestion API to use. The target specific
options are passed as configuration; consult the integration
guides
for details about specific connection configurations.
Creating a new target
Some integrations support creating a new target when creating a model sync. For example, an ad audience or database table.
When creating a new target, object is omitted and create is specified
instead. The create property is an object containing integration specific
configuration for the new target.
Authentication
This is the Polytomic deployment key (on-premises only)
Headers
Request
Logical expression combining this sync’s model filters — the entries in ‘filters’ whose ‘field_type’ is ‘Model’ — by their labels. The operators are not case-sensitive but the labels are, and the expression has to name every model filter at least once — a filter may be repeated, as in ‘(A and B) or (A and C)’ — and an expression which leaves one out is rejected. Target filters are combined by ‘target.filter_logic’.
Filters on this sync. The array holds both filters on the records read from the source and filters on the records written to the destination; a filter’s ‘field_type’ says which it is.
Organization ID for the sync; read-only with a partner key.
Whether to skip the initial backfill of records; if true only records seen after the sync is enabled will be synced.
