更新筛选视图
PATCH
/open-apis/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/filter_views/{filter_view_id}
自建应用商店应用
筛选范围的设置参考:筛选视图的筛选条件指南
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://open.feishu.cn/open-apis/sheets/v3/spreadsheets/shtcnmBA*****yGehy8/sheets/0b**12/filter_views/pH9hbVcCXA' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"filter_view_name": "筛选视图 1",
"range": "0b**12!C1:H14"
}'
响应示例响应示例
{
"code": 0,
"msg": "success",
"data": {
"filter_view": {
"filter_view_id": "pH9hbVcCXA",
"filter_view_name": "筛选视图 1",
"range": "0b**12!C1:H14"
}
}
}
请求参数
Path 参数
spreadsheet_token
string
必需
示例值:
shtcnmBA*****yGehy8
sheet_id
string
必需
示例值:
0b**12
filter_view_id
string
必需
示例值:
pH9hbVcCXA
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
Content-Type
string
必需
默认值:
application/json; charset=utf-8
Body 参数application/json
返回响应
修改于 2023-01-18 06:15:13