更新工作表属性
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": [
{
"updateSheet": {
"properties": {
"sheetId": "string",
"title": "string",
"index": "int",
"hidden": "bool",
"frozenColCount": "int",
"frozenRowCount": "int",
"protect": {
"lock": "LOCK",
"lockInfo": "111",
"userIDs": [
"ou_xxxxxxxxxx"
]
}
}
}
}
]
}'
响应示例响应示例
{
"code": 0,
"msg": "Success",
"data": {
"replies": [
{
"updateSheet": {
"properties": {
"sheetId": "string",
"title": "string",
"index": 0,
"hidden": true,
"frozenColCount": 0,
"frozenRowCount": 0,
"protect": {
"lock": "LOCK",
"sheetName": "",
"permId": "",
"userIDs": [
"ou_xxxxxxxxx"
]
}
}
}
}
]
}
}
请求参数
Path 参数
spreadsheetToken
string
必需
Query 参数
user_id_type
string
可选
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
Content-Type
string
必需
默认值:
application/json; charset=utf-8
Body 参数application/json
返回响应
修改于 2023-01-13 10:15:56