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. You can retrieve a list of all target objects for a connection using the Get Target Objects endpoint.
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.
The Get Target List endpoint returns information about whether a connection supports target creation.
Authentication
Basic organization-scoped API key
Headers
Request
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.
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.
Filters applied to the destination records the sync has matched. Only some destinations and sync modes support them; 'supports_target_filters' on the mode returned by GET /api/connections/{id}/modelsync/target/fields says which.
Deprecated. Use 'model_filters.logic'. Combines the model filters in 'filters' only.
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.
