在混合 files.modifyLabels 和 files.update 方法时, BatchHttpRequest 发生失败

作者: mfcarroll创建于 2025年9月11日更新于 2026年5月28日
标签type: bugapi: drivepriority: p3

Description

When attempting to batch API calls using service.new_batch_http_request(), the batch fails if it contains both a files().modifyLabels() request and a files().update() request. The overall batch request returns a 200 OK, but the individual responses for each sub-request show a 400 Bad Request.

This issue occurs regardless of whether the operations target the same file ID or different file IDs.

内容来源: googleapis/google-api-python-client