POST/api/v1/connector/dash/addCategorycURLcURLCopycurl -X POST "https://{workspaceId}.cn-beijing.maas.aliyuncs.com/api/v1/connector/dash/addCategory" \ -H "Authorization: Bearer $DASHSCOPE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "categoryName": "产品文档", "categoryType": "UNSTRUCTURED" }'200400401Copy{ "code": "Success", "message": "", "messageUnmodified": false, "requestId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "data": { "categoryId": "cate_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_xxxxxx", "categoryName": "_tmp_example" }, "status": 200 }AuthorizationsAuthorizationstringheaderrequiredDashScope API Key,在控制台 API Key 页面 获取。Bodyapplication/jsoncategoryNamestringrequired类目名称。Required range:length: 1–20categoryTypeenum<string>required类目类型。Available options:UNSTRUCTUREDparentCategoryIdstring父类目 ID,创建子类目时传入。connectorIdstring连接器 ID,将类目关联到指定连接器。Response200-application/jsoncodestring响应码,成功时为 Success。messagestring错误或提示信息,成功时为空字符串。requestIdstring请求唯一标识,排查问题时请提供此 ID。dataobjectShow child attributesdata.categoryIdstring新创建的类目 ID。data.categoryNamestring类目名称。statusinteger业务状态码。成功为 200,参数错误等失败场景为 400。注意失败时 HTTP 状态码仍为 200,需根据本字段与 code 判断结果。