Model Sync

List Syncs

GET

Response

This endpoint returns an object
data
list of objectsOptional
GET
1curl https://app.polytomic.com/api/syncs \
2 -H "Authorization: Bearer <token>"
200Retrieved
1{
2 "data": [
3 {
4 "active": true,
5 "fields": [
6 {
7 "source": {
8 "field": "id",
9 "model_id": "248df4b7-aa70-47b8-a036-33ac447e668d"
10 },
11 "target": "name"
12 }
13 ],
14 "filter_logic": "filter_logic",
15 "filters": [
16 {
17 "function": "Equality",
18 "field": {
19 "field": "id",
20 "model_id": "248df4b7-aa70-47b8-a036-33ac447e668d"
21 },
22 "field_id": "field1",
23 "label": "A"
24 }
25 ],
26 "id": "248df4b7-aa70-47b8-a036-33ac447e668d",
27 "identity": {
28 "function": "Equality",
29 "source": {
30 "field": "id",
31 "model_id": "248df4b7-aa70-47b8-a036-33ac447e668d"
32 },
33 "target": "name"
34 },
35 "mode": "create",
36 "name": "Users Sync",
37 "organization_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
38 "override_fields": [
39 {
40 "source": {
41 "field": "id",
42 "model_id": "248df4b7-aa70-47b8-a036-33ac447e668d"
43 },
44 "target": "name"
45 }
46 ],
47 "overrides": [
48 {
49 "field": {
50 "field": "id",
51 "model_id": "248df4b7-aa70-47b8-a036-33ac447e668d"
52 },
53 "field_id": "field1"
54 }
55 ],
56 "policies": [
57 "248df4b7-aa70-47b8-a036-33ac447e668d"
58 ],
59 "schedule": {
60 "connection_id": "248df4b7-aa70-47b8-a036-33ac447e668d"
61 },
62 "sync_all_records": false,
63 "target": {
64 "connection_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
65 "object": "Users",
66 "configuration": {
67 "key": "value"
68 },
69 "search_values": {
70 "name": "value"
71 }
72 }
73 }
74 ]
75}