UpdateGeneratedContent
Updates the history of an article created in AiMiaoBi.
Debug
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.
Authorization information
The following table describes the authorization information for this API. You can use it in the Action element of a RAM policy statement to grant RAM users or RAM roles the permission to call this API. Details are as follows:
-
Action: the specific permission point.
-
Access level: the access level of each action. Valid values: Write, Read, or List.
-
Resource type: the resource types that support authorization for the action. Details are as follows:
- For required resource types, an asterisk (*) is added as a prefix.
- For actions 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 action. The caller must also have the permissions of the related actions for the operation to succeed.
| Action | Access level | Resource type | Condition key | Related action |
|---|---|---|---|---|
| aimiaobi:UpdateGeneratedContent | update | *All resources * |
| None |
Request parameters
| Name | Type | Required | Description | Example value |
|---|---|---|---|---|
| AgentKey | string | Yes | Workspace unique identifier: AgentKey | xxxxx_p_efm |
| Id | long | Yes | The unique identifier of the document. | 36 |
| Prompt | string | No | The last prompt that was used to generate the content. | Create an article about XX |
| Title | string | No | The title. | Article title |
| Content | string | No | The body of the article in rich text format. | Article body |
| ContentText | string | No | The body of the article in plain text format. | Article body |
| Keywords | array | No | The keywords. | |
| Keyword | string | No | A keyword. | Boarding |
Response parameters
| Name | Type | Description | Example value |
|---|---|---|---|
| object | The response. | ||
| Code | string | The status code. | NoData |
| Data | boolean | The returned data. | false |
| HttpStatusCode | integer | The HTTP status code. | 200 |
| Message | string | The error message. | success |
| RequestId | string | The unique identifier of the request. | 1813ceee-7fe5-41b4-87e5-982a4d18cca5 |
| Success | boolean | Whether successful: true for success, false for failure | true |
Examples
Success response
JSON format
{
"Code": "NoData",
"Data": false,
"HttpStatusCode": 200,
"Message": "success",
"RequestId": "1813ceee-7fe5-41b4-87e5-982a4d18cca5",
"Success": true
}
Error codes
Visit the Error Center to view more error codes.