Update Bulk Sync Schemas
Changed onPatches one or more schemas on a bulk sync at once.
Only schemas explicitly included in the request body are modified; schemas omitted from the request are left unchanged. This makes PATCH the right choice when you want to update a subset of tables without affecting the rest of the sync's schema configuration.
Within each provided schema, omitting fields enables all available fields on that schema. To control which fields are enabled, include the fields array with explicit enabled values for each field. Primary-key fields stay enabled while their schema is enabled, even when the request sets enabled: false for them.
output_name and destination_history_output_name on a schema, and output_name on a field, are computed by Polytomic and ignored on input. Set user_output_name to rename a destination object or field.
The response contains every schema on the bulk sync after the update, not only the schemas included in the request.
📘 To replace a single schema's configuration in full (clearing any fields you omit), use PUT /api/bulk/syncs/{id}/schemas/{schema_id} instead.
Request
- Base URLhttps://app.polytomic.com
- Auth
- HTTP bearer
- or HTTP basic
Path parameters
Unique identifier of the bulk sync
Headers
Request body
Example request
{
"schemas": [
{
"data_cutoff_timestamp": "2023-04-25T12:00:00Z",
"destination_history_output_name": "contact__history",
"enabled": true,
"fields": [
{
"enabled": true,
"id": "email",
"output_name": "email",
"user_output_name": "my_email"
}
],
"filters": [
{
"field_id": "field1",
"value": "value"
}
],
"id": "Contact",
"output_name": "contact",
"partition_key": "email",
"tracking_field": "updated_at",
"user_output_name": "my_contact"
}
]
}Response
OK
Example response
{
"data": [
{
"data_cutoff_timestamp": "2023-04-25T12:00:00Z",
"destination_history_output_name": "contact__history",
"enabled": true,
"fields": [
{
"enabled": true,
"id": "email",
"output_name": "email",
"user_output_name": "my_email"
}
],
"filters": [
{
"field_id": "field1",
"value": "value"
}
],
"id": "Contact",
"output_name": "contact",
"partition_key": "email",
"tracking_field": "updated_at",
"user_output_name": "my_contact"
}
]
}Changes
- info
the request optional property
//became read-only - info
the request optional property
////became read-only - info
the request optional property
//became read-only - info
the response optional property
//became read-only for the status - info
the response optional property
////became read-only for the status - info
the response optional property
//became read-only for the status
- info
- breaking
added to the
////request propertyallOflist - breaking
removed the enum value
ArrayContainsof the request property//// - breaking
removed the enum value
ArrayDoesNotContainof the request property//// - breaking
removed the enum value
Betweenof the request property//// - breaking
removed the enum value
Equalityof the request property//// - breaking
removed the enum value
Falseof the request property//// - breaking
removed the enum value
GreaterThanof the request property//// - breaking
removed the enum value
GreaterThanEqualof the request property//// - breaking
removed the enum value
InTheLastof the request property//// - breaking
removed the enum value
Inequalityof the request property//// - breaking
removed the enum value
IsNotNullof the request property//// - breaking
removed the enum value
IsNullof the request property//// - breaking
removed the enum value
LessThanof the request property//// - breaking
removed the enum value
LessThanEqualof the request property//// - breaking
removed the enum value
OnOrAfterof the request property//// - breaking
removed the enum value
OnOrBeforeof the request property//// - breaking
removed the enum value
RelativeOnOrAfterof the request property//// - breaking
removed the enum value
RelativeOnOrBeforeof the request property//// - breaking
removed the enum value
StringContainsof the request property//// - breaking
removed the enum value
StringDoesNotContainof the request property//// - breaking
removed the enum value
StringDoesNotEndWithof the request property//// - breaking
removed the enum value
StringDoesNotStartWithof the request property//// - breaking
removed the enum value
StringEndsWithof the request property//// - breaking
removed the enum value
StringLikeof the request property//// - breaking
removed the enum value
StringMatchesTrimmedof the request property//// - breaking
removed the enum value
StringNotLikeof the request property//// - breaking
removed the enum value
StringNotOneOfof the request property//// - breaking
removed the enum value
StringOneOfof the request property//// - breaking
removed the enum value
StringStartsWithof the request property//// - breaking
removed the enum value
Trueof the request property//// - breaking
the
////request property type changed fromstringto no type - breaking
the
////response's property type changed fromstringto no type for status - info
added to the
////response propertyallOflist for the response status - info
removed the
ArrayContainsenum value from the////response property for the response status - info
removed the
ArrayDoesNotContainenum value from the////response property for the response status - info
removed the
Betweenenum value from the////response property for the response status - info
removed the
Equalityenum value from the////response property for the response status - info
removed the
Falseenum value from the////response property for the response status - info
removed the
GreaterThanenum value from the////response property for the response status - info
removed the
GreaterThanEqualenum value from the////response property for the response status - info
removed the
InTheLastenum value from the////response property for the response status - info
removed the
Inequalityenum value from the////response property for the response status - info
removed the
IsNotNullenum value from the////response property for the response status - info
removed the
IsNullenum value from the////response property for the response status - info
removed the
LessThanenum value from the////response property for the response status - info
removed the
LessThanEqualenum value from the////response property for the response status - info
removed the
OnOrAfterenum value from the////response property for the response status - info
removed the
OnOrBeforeenum value from the////response property for the response status - info
removed the
RelativeOnOrAfterenum value from the////response property for the response status - info
removed the
RelativeOnOrBeforeenum value from the////response property for the response status - info
removed the
StringContainsenum value from the////response property for the response status - info
removed the
StringDoesNotContainenum value from the////response property for the response status - info
removed the
StringDoesNotEndWithenum value from the////response property for the response status - info
removed the
StringDoesNotStartWithenum value from the////response property for the response status - info
removed the
StringEndsWithenum value from the////response property for the response status - info
removed the
StringLikeenum value from the////response property for the response status - info
removed the
StringMatchesTrimmedenum value from the////response property for the response status - info
removed the
StringNotLikeenum value from the////response property for the response status - info
removed the
StringNotOneOfenum value from the////response property for the response status - info
removed the
StringOneOfenum value from the////response property for the response status - info
removed the
StringStartsWithenum value from the////response property for the response status - info
removed the
Trueenum value from the////response property for the response status
- breaking