POST
/
sync
curl --request POST \
  --url https://api.fabra.io/sync \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "display_name": "Event Sync",
  "source_id": 1,
  "destination_id": 2,
  "object_id": 3,
  "end_customer_id": "abc123",
  "namespace": "end_customer_bigquery_dataset",
  "table_name": "end_customer_events",
  "custom_join": "select * from events join additional_properties on events.id = additional_properties.event_id;",
  "cursor_field": "updated_at",
  "primary_key": "event_id",
  "frequency": 30,
  "frequency_units": "minutes",
  "field_mappings": [
    {
      "source_field_name": "event_name",
      "destination_field_name": "event"
    }
  ]
}'
{
  "sync": {
    "id": 10,
    "display_name": "Event Sync",
    "end_customer_id": "abc123",
    "source_id": 1,
    "destination_id": 2,
    "object_id": 3,
    "namespace": "end_customer_bigquery_dataset",
    "table_name": "end_customer_events",
    "custom_join": "select * from events join additional_properties on events.id = additional_properties.event_id;",
    "cursor_field": "updated_at",
    "primary_key": "event_id",
    "frequency": 123,
    "frequency_units": "minutes",
    "field_mappings": [
      {
        "source_field_name": "event_name",
        "destination_field_name": "event"
      }
    ]
  }
}

Authorizations

X-API-KEY
string
headerrequired

Body

application/json
display_name
string
required
source_id
integer
required
destination_id
integer
required
object_id
integer
required
end_customer_id
string
required
namespace
string
table_name
string
custom_join
string
cursor_field
string
primary_key
string
frequency
integer
frequency_units
enum<string>
Available options:
minutes,
hours,
days,
weeks
field_mappings
object[]
required

Response

200 - application/json
sync
object