async def update_sync(
    *,
    db: AsyncSession = Depends(deps.get_db),
    sync_id: UUID,
    sync_update: schemas.SyncUpdate = Body(...),
    user: schemas.User = Depends(deps.get_user),
) -> schemas.Sync:
    """Update a sync configuration.

    Args:
    -----
        db: The database session
        sync_id: The ID of the sync to update
        sync_update: The sync update data
        user: The current user

    Returns:
    --------
        sync (schemas.Sync): The updated sync
    """
    return await sync_service.update_sync(
        db=db, sync_id=sync_id, sync_update=sync_update, current_user=user
    )
Update a sync configuration.

    Args:
    -----
        db: The database session
        sync_id: The ID of the sync to update
        sync_update: The sync update data
        user: The current user

    Returns:
    --------
        sync (schemas.Sync): The updated sync
    
backend/airweave/api/v1/endpoints/sync.py