跳到导航

预览变基后的配置

Returns the result of pulling changes from a source branch (defaults to main) into the given branch without performing it. When conflicts is not empty, the rebase itself is rejected unless conflict_resolutions settles every conflict; until then the returned configuration keeps the given branch’s side of each conflict.

路径参数

agent_idstring必需

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

branch_idstring必需

要合并的源分支唯一标识符。

请求头

xi-api-keystring可选

查询参数

source_branch_idstring or null可选

要拉取更改的源分支 ID。默认为智能体的主分支。

include_procedure_generated_workflow_elementsboolean可选默认为 true

是否包含根据结构化流程生成的 workflow 节点和边。设为 false 时,workflow 仅包含手动创建的元素。

响应

成功响应

agent_idstring

智能体 ID

namestring

智能体名称

conversation_configobject

智能体的对话配置

metadataobject

智能体的元数据

platform_settingsobject可选

智能体的平台设置

phone_numberslist of objects可选

智能体的电话号码

whatsapp_accountslist of objects可选

分配给智能体的 WhatsApp 账户

workflowobject可选

智能体的 workflow。

access_infoobject or null可选

用户对智能体的访问信息

tagslist of strings可选

用于分类智能体的标签

version_idstring or null可选

智能体当前版本的 ID

branch_idstring or null可选

智能体所在分支的 ID

main_branch_idstring or null可选

此智能体主分支的 ID

proceduresmap from strings to objects可选

以 procedure_id 为键的流程。

default_hold_audio_urlstring可选默认为 https://eleven-public-cdn-common.elevenlabs.io/convai/ambient-audio-assets/elevator1.mp3

未上传自定义等待音频时,向排队来电者播放的默认等待音 URL,供控制台预览。

overridden_fieldslist of strings可选

相对于共同祖先,两个分支均修改了同一字段的配置字段点路径(冲突)。无论冲突由哪一方胜出,都会存在。

conflictslist of objects可选

Structured view of the same conflicts as overridden_fields, each carrying the value on the base (common ancestor), source branch, and target branch so the divergence can be presented and resolved field-by-field. A merge or rebase is rejected while any of them has no resolution in conflict_resolutions, unless the merge is forced.

source_identical_to_targetboolean可选默认为 false

当合并/变基不会产生任何变化时为 True,即合并结果与源分支最新提交相同。此情况下变基端点会拒绝请求。

source_tip_version_idstring or null可选

Tip version of the source branch (the rebased branch for a rebase) the preview was computed from.

target_tip_version_idstring or null可选

Tip version of the target branch (main for a rebase) the preview was computed from.

merge_errorstring or null可选
Why the merge doesn't combine into a valid configuration while conflicts are left to resolve. The preview then shows the branch the merge writes unchanged.

错误

422
Unprocessable Entity Error