update_bulk_sync
Modify an existing bulk data synchronization configuration by updating its name, schedule, source, or destination settings in Polytomic.
Instructions
Update an existing bulk sync in Polytomic.
Args: id: The bulk sync ID to update name: Optional new name schedule: Optional JSON for schedule destination_configuration: Optional JSON string with destination config source_configuration: Optional JSON string with source config
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | No | ||
| schedule | No | ||
| destination_configuration | No | ||
| source_configuration | No |
Implementation Reference
- src/polytomic_mcp/server.py:491-528 (handler)The handler function 'update_bulk_sync' responsible for updating a bulk sync.
async def update_bulk_sync( id: str, name: str | None = None, schedule: str | None = None, destination_configuration: str | None = None, source_configuration: str | None = None, ) -> str: """Update an existing bulk sync in Polytomic. Args: id: The bulk sync ID to update name: Optional new name schedule: Optional JSON for schedule destination_configuration: Optional JSON string with destination config source_configuration: Optional JSON string with source config """ current = await polytomic_request(f"/bulk/syncs/{id}") current_data = current.get("data", current) body = { "name": name or current_data.get("name"), "source_connection_id": current_data.get("source_connection_id"), "dest_connection_id": current_data.get("dest_connection_id"), "destination_configuration": json.loads(destination_configuration) if destination_configuration else current_data.get("destination_configuration"), } if schedule: body["schedule"] = json.loads(schedule) elif current_data.get("schedule"): body["schedule"] = current_data.get("schedule") if source_configuration: body["source_configuration"] = json.loads(source_configuration) elif current_data.get("source_configuration"): body["source_configuration"] = current_data.get("source_configuration") result = await polytomic_request(f"/bulk/syncs/{id}", method="PUT", body=body) return json.dumps(result, indent=2) - src/polytomic_mcp/server.py:490-490 (registration)Registration of the update_bulk_sync tool using @mcp.tool() decorator.
@mcp.tool()