创建新分支
创建新分支
从任意分支的指定版本创建新分支
路径参数
agent_id
智能体 ID。创建智能体时返回此值。
请求头
xi-api-key
请求
This endpoint expects an object.
parent_version_id
要创建分支的源版本 ID
name
分支名称。在该智能体内唯一。
description
分支说明
conversation_config
Changes to apply to conversation config
platform_settings
Changes to apply to platform settings
workflow
更新后的 workflow 定义。
include_draft
设为 true 时,新分支使用调用方的流程草稿集,而非分支顶端版本。要求 parent_version_id 为分支顶端版本。
响应
成功响应
created_branch_id
已创建分支的 ID
created_version_id
已创建分支上首个版本的 ID
错误
422
Unprocessable Entity Error