创建条件格式
POST
/open-apis/sheets/v2/spreadsheets/{spreadsheetToken}/condition_formats/batch_create
自建应用商店应用
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open.feishu.cn/open-apis/sheets/v2/spreadsheets//condition_formats/batch_create' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"sheet_condition_formats": [
{
"sheet_id": "40a7b0",
"condition_format": {
"ranges": [
"40a7b0!C3:C3"
],
"rule_type": "timePeriod",
"attrs": [
{
"operator": "is",
"time_period": "today",
"formula": [],
"text": ""
}
],
"style": {
"font": {
"bold": true,
"italic": true
},
"fore_color": "#faf1d1",
"back_color": "#d9f5d6",
"text_decoration": 3
}
}
}
]
}'
响应示例响应示例
{
"code": 0,
"msg": "Success",
"data": {
"responses": [
{
"cf_id": "1gJelvenW9",
"res_code": 0,
"res_msg": "success",
"sheet_id": "40a7b0"
}
]
}
}
请求参数
Path 参数
spreadsheetToken
string
必需
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
Content-Type
string
必需
默认值:
application/json; charset=utf-8
Body 参数application/json
返回响应
修改于 2023-01-18 06:36:51