操作工作表
POST
https://open.feishu.cn/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
返回响应
修改于 2023-01-13 10:10:31