HTTP状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
500 | 1270001 | 系统内部错误 | 联系系统开发人员协助定位 |
400 | 1270002 | 参数错误 | 根据错误信息和文档排查非法参数 |
400 | 1270005 | 该功能仅对旗舰版可用 | 请联系销售人员升级套餐以使用此高级功能 |
400 | 1273004 | 记录不存在 | 检查请求的记录是否真实存在 |
400 | 1273005 | 请求体参数错误或缺失 | 根据错误信息和文档排查 |
400 | 1274002 | 定义的字段名称重复 | 修改重复字段 |
400 | 1274008 | 字段和类型不匹配 | 检查字段的名称是否可以设置为对应类型 |
400 | 1274010 | 字段名称不符合规范 | 检查对应字段是否包含非法字符和长度是否合规 |
curl --location --request PATCH 'https://open.feishu.cn/open-apis/search/v2/schemas/' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"display": {
"card_key": "search_common_card",
"fields_mapping": [
{
"data_field": "${description}",
"display_field": "summary"
}
]
}
}'
{
"code": 0,
"data": {
"schema": {
"display": {
"card_key": "search_common_card",
"fields_mapping": [
{
"data_field": "${description}",
"display_field": "summary"
}
]
},
"properties": [
{
"is_returnable": true,
"is_searchable": true,
"name": "description",
"search_options": {
"enable_camel_match": false,
"enable_exact_match": false,
"enable_number_suffix_match": false,
"enable_prefix_match": false,
"enable_semantic_match": true
},
"type": "text"
},
{
"is_returnable": true,
"name": "icon_url",
"type": "text"
},
{
"name": "rank",
"sort_options": {
"order": "asc"
},
"type": "int"
},
{
"is_returnable": true,
"name": "priority",
"type": "tag",
"type_definitions": {
"tag": [
{
"color": "red",
"name": "type",
"text": "type"
}
]
}
}
],
"schema_id": "example_schema"
}
},
"msg": "success"
}