provider Agents Platform POST /v1/convai/agents/{agent_id}/branches/{source_branch_id}/merge
@utdk/elevenlabs /v1/convai/agents/{agent_id}/branches/{source_branch_id}/merge
Merge A Branch Into A Target Branch
Merge a branch into a target branch
agent_id path required
The id of an agent. This is returned on agent creation.
string
source_branch_id path required
Unique identifier for the source branch to merge from.
string
target_branch_id query required
The ID of the target branch to merge into.
string
xi-api-key header
Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

Try it

Authentication
Configure credentials for ElevenLabs API Documentation
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

mergeBranchIntoTarget
POST/v1/convai/agents/{agent_id}/branches/{source_branch_id}/merge
Merge a branch into a target branch

Parameters

required

The id of an agent. This is returned on agent creation.

required

Unique identifier for the source branch to merge from.

required

The ID of the target branch to merge into.

Input

Whether to archive the source branch after merging

Force source branch changes onto the target, overriding timestamp-based conflict resolution

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import elevenlabs from '@utdk/elevenlabs';

await elevenlabs.mergeBranchIntoTarget({
  "archive_source_branch": true,
  "force": false
})