向多个范围写入数据
POST
/open-apis/sheets/v2/spreadsheets/{spreadsheetToken}/values_batch_update
自建应用商店应用
错误码
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open.feishu.cn/open-apis/sheets/v2/spreadsheets//values_batch_update' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"valueRanges": [
{
"range": "range1",
"values": [
[
"string1", 1, "http://www.xx.com"
]
]
},
{
"range": "range2",
"values": [
[
"string2", 2, "http://www.xx.com"
]
]
}
]
}'
响应示例响应示例
{
"code": 0,
"data": {
"responses": [
{
"spreadsheetToken": "***",
"updatedCells": 0,
"updatedColumns": 0,
"updatedRange": "***",
"updatedRows": 0
},
{
"spreadsheetToken": "***",
"updatedCells": 0,
"updatedColumns": 0,
"updatedRange": "***",
"updatedRows": 0
}
],
"revision": 0,
"spreadsheetToken": "***"
},
"msg": "Success"
}
请求参数
Path 参数
spreadsheetToken
string
必需
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
Content-Type
string
必需
默认值:
application/json; charset=utf-8
Body 参数application/json
返回响应
修改于 2023-01-18 05:54:37