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 Resourcesis 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.
| Operation | Access level | Resource type | Condition key | Related action |
|---|---|---|---|---|
| aimiaobi:SaveStyleLearningResult | create | *All Resources * |
| None |
Request parameters
| Name | Type | Required | Description | Example value |
|---|---|---|---|---|
| RewriteResult | string | No | Content revised by the user | Content revised by the user |
| StyleName | string | No | Name of the saved writing style | Study report |
| AigcResult | string | No | Content generated by AIGC | Content generated by AIGC |
| CustomTextIdList | array | No | Collection of custom text materials | |
| long | No | 1 | 18 | |
| AgentKey | string | No | Unique identifier of the workspace: AgentKey | xxxxx_p_efm |
| TaskId | string | No | ID of the task, consistent with the taskID in the SSE interface | 3f7045e099474ba28ceca1b4eb6d6e21 |
| MaterialIdList | array | No | Collection of material IDs | |
| long | No | 1 | 4 |
Response elements
| Name | Type | Description | Example value |
|---|---|---|---|
| object | PlainResult | ||
| RequestId | string | Unique ID of the request | 1813ceee-7fe5-41b4-87e5-982a4d18cca5 |
| Code | string | Status code | NoData |
| Data | boolean | Business data | true |
| HttpStatusCode | integer | HTTP status code | 200 |
| Message | string | Error message | success |
| Success | boolean | Indicates whether the request is successful: true for success, false for failure | true |
Examples
Success response
JSON format
Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 403 | NoPermission | You are not authorized to perform this action. | Check the workspaceId assignment |