Create agent branch

Create a new branch from a given version of any branch

路径参数

agent_idstring必需
The id of an agent. This is returned on agent creation.

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
parent_version_idstring必需
ID of the version to branch from
namestring必需<=140 characters
Name of the branch. It is unique within the agent.
descriptionstring必需<=4096 characters
Description for the branch
conversation_configmap from strings to any可选
Changes to apply to conversation config
platform_settingsmap from strings to any可选
Changes to apply to platform settings
workflowobject可选
Updated workflow definition
include_draftboolean可选默认为 false

When true, the new branch uses the caller’s draft procedure set instead of the branch tip. Requires parent_version_id to be the branch tip.

响应

Successful Response
created_branch_idstring
ID of the created branch
created_version_idstring
ID of the first version on the created branch

错误

422
Branches Create Request Unprocessable Entity Error