CreateGeneratedContent

Updated at:

Saves an article created in Miaobi. This operation supports rich text.

Try it now

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

Try it now

RAM authorization

The following table lists 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:

  • Action: the specific permission point.

  • Access level: the access level of each operation. Valid values: Write, Read, or List.

  • Resource type: the resource types that support authorization for the operation. Details:

    • 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: the other permissions required to successfully perform the operation. The caller must also have the permissions of the dependent actions for the operation to succeed.

ActionAccess levelResource typeCondition keyDependent action
aimiaobi:CreateGeneratedContentcreate
*All Resources
*
    None
None

Request parameters

ParameterTypeRequiredDescriptionExample
AgentKeystringYes

Unique identifier of the workspace: AgentKey

xxx_efm
PromptstringNo

The last generated prompt

Create xxx article
TaskIdstringYes

Unique identifier of the task

Note You do not need to specify TaskId. The system automatically generates it. When the same TaskId is specified for subsequent tasks, these tasks belong to the same conversation group.
xxx
TitlestringYes

The title

Hangzhou Asian Games
ContentstringYes

The body of the content, in rich text format

Hangzhou Asian Games
ContentDomainstringNo

The domain for content generation

government
ContentTextstringNo

The body of the content, in plain text format

Hangzhou Asian Games
UuidstringNo

The traceability UUID

xxxx
KeywordsarrayNo

The keywords

KeywordstringNo

A keyword

keyword

Response elements

ElementTypeDescriptionExample
object

Response result

Codestring

Status code

success
Datalong

Business data

42
HttpStatusCodeinteger

HTTP status code

200
Messagestring

Error message

successful
RequestIdstring

Unique request identifier

3f7045e099474ba28ceca1b4eb6d6e21
Successboolean

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

false

Examples

Success response

JSON format

{
  "Code": "success",
  "Data": 42,
  "HttpStatusCode": 200,
  "Message": "successful",
  "RequestId": "3f7045e099474ba28ceca1b4eb6d6e21",
  "Success": false
}

Error codes

Visit the Error Center to view more error codes.