DeleteCategory
Permanently deletes a specified category.
Operation description
Resource Access Management (RAM) users must first obtain API permissions for Alibaba Cloud Model Studio (requiring
AliyunBailianDataFullAccess, which includes the sfm:DeleteCategory permission), and join a workspace before calling this operation. Alibaba Cloud accounts can call this operation directly without authorization. Use the latest Alibaba Cloud Model Studio SDK to call this operation.This operation is idempotent.
Rate limiting: This operation is subject to rate limiting. Do not exceed 5 calls per second. If you are throttled, retry later.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sfm:DeleteCategory |
delete |
*All Resource
|
None | None |
Request syntax
DELETE /{WorkspaceId}/datacenter/category/{CategoryId}/ HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CategoryId |
string |
Yes |
The category ID, which is the . |
cate_cdd11b1b79a74e8bbd675c356a91ee35xxxxxxxx |
| WorkspaceId |
string |
Yes |
The ID of the workspace to which the category belongs. For information about how to obtain the workspace ID, see How to use a workspace. |
llm-3shx2gu255oqxxxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
17204B98-xxxx-4F9A-8464-2446A84821CA |
| Data |
object |
The data field returned by the operation. |
|
| CategoryId |
string |
The ID of the deleted category. |
cate_cdd11b1b79a74e8bbd675c356a91ee3xxxxxxxx |
| Status |
string |
The status code returned by the operation. |
200 |
| Success |
boolean |
Indicates whether the call was successful. Valid values:
|
true |
| Message |
string |
The error message. |
workspace id is null or invalid. |
| Code |
string |
The error code. |
success |
Examples
Success response
JSON format
{
"RequestId": "17204B98-xxxx-4F9A-8464-2446A84821CA",
"Data": {
"CategoryId": "cate_cdd11b1b79a74e8bbd675c356a91ee3xxxxxxxx"
},
"Status": "200",
"Success": true,
"Message": "workspace id is null or invalid.",
"Code": "success"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.