activate_bulk_sync
Activate or deactivate bulk data synchronization tasks in Polytomic to control when data pipelines run.
Instructions
Activate or deactivate a bulk sync.
Args: id: The bulk sync ID active: True to activate, False to deactivate
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| active | No |
Implementation Reference
- src/polytomic_mcp/server.py:543-552 (handler)The implementation of the activate_bulk_sync tool, which sends a POST request to the polytomic API to activate or deactivate a bulk sync.
async def activate_bulk_sync(id: str, active: bool = True) -> str: """Activate or deactivate a bulk sync. Args: id: The bulk sync ID active: True to activate, False to deactivate """ body = {"active": active} result = await polytomic_request(f"/bulk/syncs/{id}/activate", method="POST", body=body) return json.dumps(result, indent=2)