文档
APIAPI 参考

批量

在一个请求中执行多个可批量的读取操作。

POST/api/v1/batch

批量执行

Runs up to 50 read operations in one request and returns each result under its id. Only operations marked as batch-eligible can be included. Each item needs the same scopes as calling it directly.

权限范围analytics:read
请求体application/json
requestsobject[]必填

Operations to run. Each has a unique id, a method, an /api/v1/… path, and an optional JSON body.

1–50 items
idstring必填
1–80 chars
methodstring必填
可选值"GET""POST"
pathstring必填
1–2048 chars
bodyobject
deadlineMsinteger

Time budget for the whole batch, up to 30,000 ms.

1–30000
响应