设置单元格样式
PUT
/open-apis/sheets/v2/spreadsheets/{spreadsheetToken}/style
自建应用商店应用
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://open.feishu.cn/open-apis/sheets/v2/spreadsheets//style' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"appendStyle":{
"range": "string",
"style":{
"font":{
"bold":true,
"italic":true,
"fontSize":"10pt/1.5",
"clean":false
},
"textDecoration":0,
"formatter":"",
"hAlign": 0 ,
"vAlign":0,
"foreColor":"#000000",
"backColor":"#21d11f",
"borderType":"FULL_BORDER",
"borderColor": "#ff0000",
"clean": false
}
}
}'
响应示例响应示例
{
"code": 0,
"msg": "Success",
"data": {
"spreadsheetToken": "string",
"updatedRange": "string",
"updatedRows": 0,
"updatedColumns": 0,
"updatedCells": 0,
"revision": 0
}
}
请求参数
Path 参数
spreadsheetToken
string
必需
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
Content-Type
string
必需
默认值:
application/json; charset=utf-8
Body 参数application/json
返回响应
修改于 2023-01-18 05:56:00