cURL
Authorizations
string
header
required
DashScope API Key,在控制台 API Key 页面(https://rag.console.aliyun.com/settings/apikey)获取。
查询当前业务空间下的类目列表,支持按类型、名称过滤
curl -X POST "https://{workspaceId}.cn-beijing.maas.aliyuncs.com/api/v1/connector/dash/listCategory" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "UNSTRUCTURED"
}'{
"code": "Success",
"message": "",
"messageUnmodified": false,
"requestId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"data": {
"hasNext": false,
"maxResult": 20,
"totalCount": 2,
"maxId": 100602,
"categoryList": [
{
"categoryId": "cate_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_xxxxxx",
"categoryName": "cscd",
"type": "UNSTRUCTURED",
"isDefault": false
}
]
},
"status": 200
}DashScope API Key,在控制台 API Key 页面(https://rag.console.aliyun.com/settings/apikey)获取。
curl -X POST "https://{workspaceId}.cn-beijing.maas.aliyuncs.com/api/v1/connector/dash/listCategory" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "UNSTRUCTURED"
}'{
"code": "Success",
"message": "",
"messageUnmodified": false,
"requestId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"data": {
"hasNext": false,
"maxResult": 20,
"totalCount": 2,
"maxId": 100602,
"categoryList": [
{
"categoryId": "cate_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_xxxxxx",
"categoryName": "cscd",
"type": "UNSTRUCTURED",
"isDefault": false
}
]
},
"status": 200
}