操作工作表
POST
/open-apis/sheets/v2/spreadsheets/{spreadsheetToken}/sheets_batch_update
自建应用商店应用
该接口和 更新工作表属性 的请求地址相同,但参数不同,调用前请仔细阅读文档。
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open.feishu.cn/open-apis/sheets/v2/spreadsheets//sheets_batch_update' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"requests": [
{
"addSheet": {
"properties": {
"title": "string",
"index": 0
}
}
},
{
"copySheet": {
"source": {
"sheetId": "string"
},
"destination": {
"title": "string"
}
}
},
{
"deleteSheet": {
"sheetId": "string"
}
}
]
}'
响应示例响应示例
{
"code": 0,
"msg": "Success",
"data": {
"replies": [
{
"addSheet": {
"properties": {
"sheetId": "string",
"title": "string",
"index": 0
}
},
"copySheet": {
"properties": {
"sheetId": "string",
"title": "string",
"index": 0
}
},
"deleteSheet": {
"result": true,
"sheetId": "string"
}
}
]
}
}
请求参数
Path 参数
spreadsheetToken
string
必需
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
Content-Type
string
必需
默认值:
application/json; charset=utf-8
Body 参数application/json
返回响应
修改于 2022-02-11 12:16:20