Skip to main content

GetCategoriesByTaskId

Retrieves the classifications from a tag mining task.

Debug

You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After the call succeeds, OpenAPI Explorer can automatically generate SDK code examples. Debug

Authorization information

The following table describes the authorization information for this API. You can use the Action element in RAM policy statements to grant RAM users or RAM roles the permission to call this API. Details are as follows:
  • Action: the specific permission point.
  • Access level: the access level of each operation. Valid values: Write, Read, or List.
  • Resource type: the resource types that support authorization for the operation. Details are as follows:
    • Required resource types are marked with a preceding asterisk (*).
    • For operations that do not support resource-level authorization, All resources is used.
  • Condition key: the condition keys defined by the cloud service itself.
  • Dependent action: the other permissions required to successfully perform the operation. The caller must have the permissions of all dependent actions for the operation to succeed.
ActionAccess levelResource typeCondition keyDependent action
aimiaobi:GetCategoriesByTaskIdget
*All resources
*
    None
None

Request parameters

NameTypeRequiredDescriptionExample
WorkspaceIdstringYes

The unique ID of the Alibaba Cloud Model Studio workspace. For more information, see Workspace ID

xxxx
TaskIdstringYes

The unique ID of the task

Note You do not need to specify TaskId. The system automatically generates it. When subsequent tasks specify the same TaskId, these tasks belong to the same conversation group.
xxx

Response parameters

NameTypeDescriptionExample
object

PlainResult

Codestring

The status code

NoData
HttpStatusCodeinteger

The HTTP status code

200
Messagestring

The error message

success
RequestIdstring

The unique ID of the request

1813ceee-7fe5-41b4-87e5-982a4d18cca5
Successboolean

Indicates whether the request was successful: true indicates success, and false indicates failure

true
Dataarray<object>

A list of classification objects

dataobject

A classification object

Categorystring

The classification name

Category 1
Childrenarray<object>

A list of sub-classifications

childrenobject

A sub-classification object

Categorystring

The sub-classification name

Category 1-1
Countinteger

The number of VOC entries in this classification

2

Examples

Success response JSON format
{
  "Code": "NoData",
  "HttpStatusCode": 200,
  "Message": "success",
  "RequestId": "1813ceee-7fe5-41b4-87e5-982a4d18cca5",
  "Success": true,
  "Data": [
    {
      "Category": "类别1",
      "Children": [
        {
          "Category": "类别1-1"
        }
      ],
      "Count": 2
    }
  ]
}

Error codes

Visit the Error Center to view more error codes.