Submits a content clustering task.
Try it now
You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer automatically generates SDK code examples.
Try it
RAM authorization
The following table describes the authorization information of this API. You can use the Action element in a RAM permission policy statement to grant RAM users or RAM roles the permission to call this API. Details are as follows:
- Operation: the specific permission point.
- Access level: the access level of each operation. Valid values: Write, Read, or List.
-
Resource type: the resource types supported for authorization in the operation. Details are as follows:
- For required resource types, an asterisk (*) is prefixed.
- 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: other permissions required for the operation to succeed. The caller must have the permissions of all dependent actions for the operation to succeed.
| Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| aimiaobi:SubmitDocClusterTask | create | *All Resources * |
| None |
Request parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| AgentKey | string | Yes | The unique identifier of the workspace: AgentKey | xxxxx_p_efm |
| Documents | array<object> | Yes | A list of documents. | |
| Document | object | Yes | ||
| Content | string | Yes | The content of the document. | Document content |
| DocId | string | No | The document ID. It is used to identify the articles in the returned cluster results. If no IDs are provided for any article in the list, the array index is used as the ID. If IDs are provided for only some articles, an error is reported. | Document ID. Used to identify the articles in the returned cluster results. If no IDs are provided for any article in the list, the array index is used as the ID. If IDs are provided for only some articles, an error is reported. |
| Title | string | No | The title of the document. | Document title |
| TopicCount | integer | No | The maximum total number of clusters. | 15 |
| TitleLength | integer | No | The character limit for the generated cluster titles. | 69 |
| SummaryLength | integer | No | The character limit for the generated cluster summaries. | 49 |
Response elements
| Name | Type | Description | Example |
|---|---|---|---|
| object | PlainResult | ||
| Code | string | The status code. | NoData |
| Data | object | The business data. | |
| TaskId | string | The unique ID of the task. | 3f7045e099474ba28ceca1b4eb6d6e21 |
| HttpStatusCode | integer | The HTTP status code. | 200 |
| Message | string | The error message. | success |
| RequestId | string | The unique ID of the request. | 1813ceee-7fe5-41b4-87e5-982a4d18cca5 |
| Success | boolean | Indicates whether the request is successful. true indicates success and false indicates failure. | true |
Examples
Success response
JSON format