Skip to navigation

Preview merged configuration

Returns the result of merging the source branch into the target branch without performing the merge. When conflicts is not empty, the merge itself is rejected unless conflict_resolutions settles every conflict or force is set; until then the returned configuration shows one side of each conflict only as a placeholder.

Path parameters

agent_idstringRequired
The id of an agent. This is returned on agent creation.
source_branch_idstringRequired
Unique identifier for the source branch to merge from.

Headers

xi-api-keystringOptional

Query parameters

target_branch_idstringRequired
The ID of the target branch to merge into.
forcebooleanOptionalDefaults to false

When true, the preview keeps the source branch’s value for every conflict, as a merge with force does. Without it, a merge with conflicts needs conflict_resolutions.

include_procedure_generated_workflow_elementsbooleanOptionalDefaults to true
Whether to include the workflow nodes and edges generated from structured procedures. When false, the workflow contains only authored elements.

Response

Successful Response
agent_idstring
The ID of the agent
namestring
The name of the agent
conversation_configobject
The conversation configuration of the agent
metadataobject
The metadata of the agent
platform_settingsobjectOptional
The platform settings of the agent
phone_numberslist of objectsOptional
The phone numbers of the agent
whatsapp_accountslist of objectsOptional
WhatsApp accounts assigned to the agent
workflowobjectOptional
The workflow of the agent
access_infoobject or nullOptional
The access information of the agent for the user
tagslist of stringsOptional
Agent tags used to categorize the agent
version_idstring or nullOptional
The ID of the version the agent is on
branch_idstring or nullOptional
The ID of the branch the agent is on
main_branch_idstring or nullOptional
The ID of the main branch for this agent
proceduresmap from strings to objectsOptional

Procedures keyed by procedure_id.

default_hold_audio_urlstringOptionalDefaults to https://eleven-public-cdn-common.elevenlabs.io/convai/ambient-audio-assets/elevator1.mp3
URL of the default hold tone played to queued callers when no custom hold audio is uploaded, so the dashboard can preview it.
overridden_fieldslist of stringsOptional

Dot-paths of config fields where both branches modified the same field relative to their common ancestor (conflicts). Present regardless of which side wins the conflict.

conflictslist of objectsOptional

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_targetbooleanOptionalDefaults to false

True when the merge/rebase would be a no-op, i.e. the merged result is identical to the source branch tip. The rebase endpoint rejects in this case.

source_tip_version_idstring or nullOptional

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

target_tip_version_idstring or nullOptional

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

merge_errorstring or nullOptional
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.

Errors

422
Unprocessable Entity Error