Skip to main content

SaveStyleLearningResult

Saves a custom writing style.

Debugging

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

RAM authorization

The following table describes the authorization information for this API. You can use it in the Action element of 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:
    • 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.
  • Related action: other permissions required to successfully perform the operation. The caller must have the permissions of all related actions for the operation to succeed.
OperationAccess levelResource typeCondition keyRelated action
aimiaobi:SaveStyleLearningResultcreate
*All Resources
*
    None
None

Request parameters

NameTypeRequiredDescriptionExample value
RewriteResultstringNo

Content revised by the user

Content revised by the user
StyleNamestringNo

Name of the saved writing style

Study report
AigcResultstringNo

Content generated by AIGC

Content generated by AIGC
CustomTextIdListarrayNo

Collection of custom text materials

longNo

1

18
AgentKeystringNo

Unique identifier of the workspace: AgentKey

xxxxx_p_efm
TaskIdstringNo

ID of the task, consistent with the taskID in the SSE interface

3f7045e099474ba28ceca1b4eb6d6e21
MaterialIdListarrayNo

Collection of material IDs

longNo

1

4

Response elements

NameTypeDescriptionExample value
object

PlainResult

RequestIdstring

Unique ID of the request

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

Status code

NoData
Databoolean

Business data

true
HttpStatusCodeinteger

HTTP status code

200
Messagestring

Error message

success
Successboolean

Indicates whether the request is successful: true for success, false for failure

true

Examples

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

Error codes

HTTP status codeError codeError messageDescription
403NoPermissionYou are not authorized to perform this action.Check the workspaceId assignment
Visit the Error Center to view more error codes.