Skip to main content

Delete Category

Delete a specified category

POST
/api/v1/connector/dash/deleteCategory
cURL
curl -X POST "https://{workspaceId}.cn-beijing.maas.aliyuncs.com/api/v1/connector/dash/deleteCategory" \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "categoryId": "cate_abc123"
  }'
{
  "code": "Success",
  "message": "",
  "messageUnmodified": false,
  "requestId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "data": {
    "categoryId": "cate_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_xxxxxx"
  },
  "status": 200
}
This operation is irreversible. After deleting a category, all files under it will become unclassified, and the original category associations cannot be restored. Please confirm that the target category has no business dependencies before calling this API.

Authorizations

string
header
required

DashScope API Key,在控制台 API Key 页面 获取。

Body

application/json
string
required

要删除的类目 ID,通过 listCategory 获取。

Response

200-application/json
string

响应码,成功时为 Success。

string

错误或提示信息,成功时为空字符串。

string

请求唯一标识,排查问题时请提供此 ID。

object

删除操作无返回数据。

integer

业务状态码。成功为 200,参数错误等失败场景为 400。注意失败时 HTTP 状态码仍为 200,需根据本字段与 code 判断结果。