Create 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.
Headers
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
Fields to sync from source to destination.
Whether the sync is enabled and scheduled.
Logical expression to combine filters.
Filters to apply to the source data.
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 ID for the sync; read-only with a partner key.
Values to set in the target unconditionally.
Conditional value replacement for fields.
Whether to skip the initial backfill of records; if true only records seen after the sync is enabled will be synced.
Whether to sync all records from the source, regardless of whether they’ve changed since the previous execution.
Response
OK