Skip to main content

SubmitDocClusterTask

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.
ActionAccess levelResource typeCondition keyDependent action
aimiaobi:SubmitDocClusterTaskcreate
*All Resources
*
    None
None

Request parameters

NameTypeRequiredDescriptionExample
AgentKeystringYes

The unique identifier of the workspace: AgentKey

xxxxx_p_efm
Documentsarray<object>Yes

A list of documents.

DocumentobjectYes
ContentstringYes

The content of the document.

Document content
DocIdstringNo

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.
TitlestringNo

The title of the document.

Document title
TopicCountintegerNo

The maximum total number of clusters.

15
TitleLengthintegerNo

The character limit for the generated cluster titles.

69
SummaryLengthintegerNo

The character limit for the generated cluster summaries.

49

Response elements

NameTypeDescriptionExample
object

PlainResult

Codestring

The status code.

NoData
Dataobject

The business data.

TaskIdstring

The unique ID of the task.

3f7045e099474ba28ceca1b4eb6d6e21
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 is successful. true indicates success and false indicates failure.

true

Examples

Success response JSON format
{
  "Code": "NoData",
  "Data": {
    "TaskId": "3f7045e099474ba28ceca1b4eb6d6e21"
  },
  "HttpStatusCode": 200,
  "Message": "success",
  "RequestId": "1813ceee-7fe5-41b4-87e5-982a4d18cca5",
  "Success": true
}

Error codes

Visit the Error Center to view more error codes.