创建新分支

从任意分支的指定版本创建新分支

路径参数

agent_idstring必需

智能体 ID。创建智能体时返回此值。

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
parent_version_idstring必需

要创建分支的源版本 ID

namestring必需<=140 characters

分支名称。在该智能体内唯一。

descriptionstring必需<=4096 characters

分支说明

conversation_configmap from strings to any or null可选
Changes to apply to conversation config
platform_settingsmap from strings to any or null可选
Changes to apply to platform settings
workflowobject or null可选

更新后的 workflow 定义。

include_draftboolean可选默认为 false

设为 true 时,新分支使用调用方的流程草稿集,而非分支顶端版本。要求 parent_version_id 为分支顶端版本。

响应

成功响应

created_branch_idstring

已创建分支的 ID

created_version_idstring

已创建分支上首个版本的 ID

错误

422
Unprocessable Entity Error