Skip to main content

GetStyleLearningResult

Retrieves the analysis result of a style learning task.

Debug

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

Authorization information

The following table describes the authorization information of this API. You can use it in the Action element of RAM policy statements 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, and List.
  • Resource type: the resource types that support authorization in the operation. Details are as follows:
    • Required resource types are marked with an asterisk (*) before them.
    • For operations that do not support resource-level authorization, All Resources is used.
  • Condition key: the condition keys defined by the cloud service itself.
  • Related operation: other permissions required to successfully perform the operation. The caller must have the permissions of related operations at the same time for the operation to succeed.
OperationAccess levelResource typeCondition keyRelated operation
aimiaobi:GetStyleLearningResultget
*All resources
*
    None
None

Request parameters

NameTypeRequiredDescriptionExample value
AgentKeystringYes

The unique identifier of the workspace: AgentKey

xxxxx_p_efm
IdlongYes

The ID of the style learning task.

39

Response elements

NameTypeDescriptionExample value
object

PlainResult

RequestIdstring

The unique ID of the request.

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

Indicates whether the request was successful. A value of true indicates that the request was successful. A value of false indicates that the request failed.

true
Codestring

The status code.

NoData
Messagestring

A description of the error.

success
HttpStatusCodeinteger

The HTTP status code.

200
Dataobject

The business data.

MaterialIdListarray

A list of material IDs.

MaterialIdListlong

The ID of the material library.

4
CustomTextIdListarray

A list of custom content IDs.

CustomTextIdListlong

The ID of the custom content.

25
ContentListarray<object>

The content of custom content entities.

ContentListobject

The custom content.

Idlong

The primary key ID.

1
Titlestring

The title.

Title
Contentstring

The content.

Content
CreateTimestring

The time when the content was created.

Creation time
UpdateTimestring

The time when the content was last modified.

Modification time
CreateUserstring

The user who created the content.

Creator
UpdateUserstring

The user who last modified the content.

Modifier
MaterialInfoListarray<object>

The detailed information about the materials.

MaterialInfoListobject
Idlong

The primary key.

50
DocTypestring

The document type: pdf, word, url, and image.

Document type: pdf, word, url, image
Titlestring

The document title.

Document title
Summarystring

The document summary.

Document summary
Authorstring

The author.

Author
PubTimestring

The publishing time.

Publishing time
DocKeywordsarray

The document tags used for purposes such as categorization. Separate different keywords with commas.

DocKeywordstring

A keyword.

Central Europe
Urlstring

The URL where the internal document is stored. It supports multiple protocols: http://, file://, and ftp://. This is the URL saved to internal storage when the customer uploads the file, kept for long-term storage and deleted upon expiration.

Internal document storage URL, supports multiple protocols, http://, file://, ftp://: URL saved to internal storage on customer upload, long-term storage, deleted on expiration
PublicUrlstring

A temporary public URL.

Temporary public URL
ExternalUrlstring

The URL uploaded by an external customer, used only for record-keeping.

URL uploaded by external customer, only for record-keeping
SrcFromstring

The document source: user_upload, search, and viewpoint.

Document source: user_upload, search, viewpoint
TextContentstring

The parsed text content. It is empty for images.

Parsed text content, empty for images
HtmlContentstring

The raw HTML content after parsing.

Parsed raw HTML content
ShareAttrinteger

The sharing attribute, stored as a bitmask. The first bit indicates whether the resource is shared within the workspace, the second bit indicates whether it is shared within the tenant, and the third bit indicates whether it is shared system-wide.

1
CreateTimestring

The time when the material was created.

Creation time
UpdateTimestring

The time when the material was last modified.

Modification time
CreateUserstring

The ID of the user who created the material.

Creator ID
CreateUserNamestring

The name of the user who created the material.

Creator name
UpdateUserstring

The ID of the user who last modified the material.

Modifier ID
UpdateUserNamestring

The name of the user who last modified the material.

Modifier name
ThumbnailInBase64string

The Base64 thumbnail of image documents.

Base64 thumbnail for image documents
FileLengthinteger

The length of the file content.

41
Idlong

The ID of the style learning analysis result.

33
TaskIdstring

The ID of the style analysis task.

3f7045e099474ba28ceca1b4eb6d6e21
AigcResultstring

The content generated by AIGC.

AIGC-generated content
RewriteResultstring

The user-revised content.

User-revised content
StyleNamestring

The user-revised content.

User-revised content

Examples

Success response JSON format
{
  "RequestId": "1813ceee-7fe5-41b4-87e5-982a4d18cca5",
  "Success": true,
  "Code": "NoData",
  "Message": "success",
  "HttpStatusCode": 200,
  "Data": {
    "MaterialIdList": [
      4
    ],
    "CustomTextIdList": [
      25
    ],
    "ContentList": [
      {
        "Id": 1,
        "Title": "Title",
        "Content": "Content",
        "CreateTime": "Creation time",
        "UpdateTime": "Modification time",
        "CreateUser": "Creator",
        "UpdateUser": "Modifier"
      }
    ],
    "MaterialInfoList": [
      {
        "Id": 50,
        "DocType": "Document type: pdf, word, url, image",
        "Title": "Document title",
        "Summary": "Document summary",
        "Author": "Author",
        "PubTime": "Publishing time",
        "DocKeywords": [
          "Central Europe"
        ],
        "Url": "Internal document storage URL, supports multiple protocols, http://, file://, ftp://: URL saved to internal storage on customer upload, long-term storage, deleted on expiration",
        "PublicUrl": "Temporary public URL",
        "ExternalUrl": "URL uploaded by external customer, only for record-keeping",
        "SrcFrom": "Document source: user_upload, search, viewpoint",
        "TextContent": "Parsed text content, empty for images",
        "HtmlContent": "Parsed raw HTML content",
        "ShareAttr": 1,
        "CreateTime": "Creation time",
        "UpdateTime": "Modification time",
        "CreateUser": "Creator ID",
        "CreateUserName": "Creator name",
        "UpdateUser": "Modifier ID",
        "UpdateUserName": "Modifier name",
        "ThumbnailInBase64": "Base64 thumbnail for image documents",
        "FileLength": 41
      }
    ],
    "Id": 33,
    "TaskId": "3f7045e099474ba28ceca1b4eb6d6e21",
    "AigcResult": "AIGC-generated content",
    "RewriteResult": "User-revised content",
    "StyleName": "User-revised content"
  }
}

Error codes

Visit the Error Center to view more error codes.