搜索 Wiki
POST
https://open.feishu.cn/open-apis/wiki/v1/nodes/search
文档类型表
obj_type | 说明 |
---|---|
0 | Folder |
2 | Doc |
3 | Sheet |
8 | Bitable |
11 | Mindnote |
12 | File |
15 | Slide |
16 | Wiki |
22 | Docx |
错误码
HTTP 状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
200 | 10001 | invalid param | 参数错误,参考文档检查输入参数 |
200 | 10002 | network anomaly, please try again | 后端服务异常或网络异常,可重新请求 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open.feishu.cn/open-apis/wiki/v1/nodes/search' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"query": "搜索关键词",
"space_id": "xxxxxxx",
"node_id": "xxxx"
}'
响应示例响应示例
{
"code": 0,
"msg": "调用成功的描述信息",
"data": {
"items": [
{
"node_id": "node_id-value",
"space_id": "space_id-value",
"parent_id": "parent_id-value",
"obj_type": "obj_type-value",
"title": "title-value",
"url": "url-value",
"icon": "icon-value"
}
],
"page_token": "page_token-value",
"has_more": "has_more-value"
}
}
请求参数
Query 参数
page_token
string
可选
page_size
integer
可选
本页返回数量的最大值 0 < page_size <= 50 默认 20
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
Content-Type
string
必需
默认值:
application/json; charset=utf-8
Body 参数application/json
返回响应
修改于 2023-01-18 09:43:42