替换单元格
POST
/open-apis/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/replace
自建应用商店应用
错误码
HTTP状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
400 | 1310242 | In Mix state | Retey Later |
400 | 1310211 | Wrong Sheet Id | 检查 sheet_id |
400 | 1310248 | Wrong Regular Expression | Check Regular Expression |
400 | 1310202 | Wrong Range | 区域范围错误 |
400 | 1310229 | Wrong URL Param | 检查 url 参数 |
400 | 1310204 | Wrong Request Body | 检查请求体参数 |
400 | 1310213 | Permission Fail | 没有文档相应权限 |
400 | 1310218 | Locked Cell | 检查操作的是否为保护范围 |
400 | 1310214 | SpreadSheet Not Found | 检查表格 token |
400 | 1310215 | Sheet Id Not Found | 检查 sheet_id |
400 | 1310226 | Excess Limit | 超出限制,参考响应体中的错误提示 |
400 | 1310217 | Too Many Request | 检查请求是否发送过于频繁 |
400 | 1310235 | Retry Later | 稍后重试 |
500 | 1315201 | Server Error | 服务内部错误,详询客服 |
500 | 1315203 | Server Error | 服务内部错误,详询客服 |
500 | 1315210 | Server Error | 服务内部错误,详询客服 |
400 | 1310249 | Spreadsheet Deleted | 恢复表格后重试 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open.feishu.cn/open-apis/sheets/v3/spreadsheets//sheets//replace' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"find_condition": {
"range": "0b**12!A1:H10",
"match_case": true,
"match_entire_cell": false,
"search_by_regex": false,
"include_formulas": false
},
"find": "hello",
"replacement": "world"
}'
响应示例响应示例
{
"code": 0,
"msg": "success",
"data": {
"replace_result": {
"matched_cells": [
"A1"
],
"matched_formula_cells": [
"B3"
],
"rows_count": 2
}
}
}
请求参数
Path 参数
spreadsheet_token
string
必需
sheet_id
string
必需
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
Content-Type
string
必需
默认值:
application/json; charset=utf-8
Body 参数application/json
返回响应
修改于 2023-01-18 06:04:13