Get Sync
Changed onReturns a single model sync by ID.
To check whether a sync is currently running or has recently completed, use GET /api/syncs/{id}/status. For the full history of executions, use GET /api/syncs/{id}/executions.
Request
- Base URLhttps://app.polytomic.com
- Auth
- HTTP bearer
- or HTTP basic
Path parameters
Model sync ID
Headers
Response
OK
Example response
{
"data": {
"active": true,
"created_by": {
"id": "12345678-1234-1234-1234-123456789012",
"name": "John Doe",
"type": "user"
},
"fields": [
{
"override_value": "fixed_value",
"source": {
"field": "id",
"model_id": "248df4b7-aa70-47b8-a036-33ac447e668d"
},
"sync_mode": "create",
"target": "name"
}
],
"filters": [
{
"field": {
"field": "id",
"model_id": "248df4b7-aa70-47b8-a036-33ac447e668d"
},
"field_id": "field1",
"label": "A",
"value": "value",
"value_field": {
"field": "id",
"model_id": "248df4b7-aa70-47b8-a036-33ac447e668d"
}
}
],
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"identities": {
"mappings": [
{
"remote_field_type_id": "string",
"source": {
"field": "id",
"model_id": "248df4b7-aa70-47b8-a036-33ac447e668d"
},
"target": "name"
}
],
"strategy": "priority"
},
"identity": {
"remote_field_type_id": "string",
"source": {
"field": "id",
"model_id": "248df4b7-aa70-47b8-a036-33ac447e668d"
},
"target": "name"
},
"model_filters": {
"conditions": [
{
"label": "A",
"source": {
"field": "id",
"model_id": "248df4b7-aa70-47b8-a036-33ac447e668d"
},
"value": "value"
}
],
"logic": "A and B or C"
},
"name": "Users Sync",
"organization_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"override_fields": [
{
"override_value": "fixed_value",
"sync_mode": "create",
"target": "name"
}
],
"overrides": [
{
"field": {
"field": "id",
"model_id": "248df4b7-aa70-47b8-a036-33ac447e668d"
},
"field_id": "field1",
"override": "new_value",
"value": "value"
}
],
"policies": [
"248df4b7-aa70-47b8-a036-33ac447e668d"
],
"problems": [
{
"code": "unknown_target_field",
"path": "target_filters.conditions[1].field",
"severity": "error"
}
],
"schedule": {
"connection_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"day_of_month": "1",
"day_of_week": "1",
"hour": "12",
"minute": "30",
"month": "1",
"run_after": {
"bulk_sync_ids": [
"248df4b7-aa70-47b8-a036-33ac447e668d"
],
"sync_ids": [
"248df4b7-aa70-47b8-a036-33ac447e668d"
]
}
},
"target": {
"configuration": {
"key": "value"
},
"connection_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"create": {
"name": "value"
},
"object": "Users",
"search_values": {
"name": "value"
}
},
"target_filters": {
"conditions": [
{
"field": "Email",
"label": "A",
"value": "value",
"value_source": {
"field": "id",
"model_id": "248df4b7-aa70-47b8-a036-33ac447e668d"
}
}
],
"logic": "A and B"
},
"updated_by": {
"id": "12345678-1234-1234-1234-123456789012",
"name": "John Doe",
"type": "user"
}
}
}Changes
- breaking
the
response's property type changed fromobjectto no type for status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - info
added to the
response propertyallOflist for the response status
- breaking
- breaking
the
/response's property type changed fromobjectto no type for status - breaking
removed the required property
//from the response with the status - breaking
removed the required property
//from the response with the status - breaking
removed the required property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - info
added the optional property
/to the response with the status - info
added to the
/response propertyallOflist for the response status
- breaking