v4

OpenAPI 3.1.02026-07-313621,3961.8 MB
Agents Platform

Merge A Branch Into A Target Branch

Merge a branch into a target branch

post/v1/convai/agents/{agent_id}/branches/{source_branch_id}/merge

Path parameters

agent_idstring required

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

Example:agent_3701k3ttaq12ewp8b7qv5rfyszkz

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

source_branch_idstring required

Unique identifier for the source branch to merge from.

Example:agtbrch_8901k4t9z5defmb8vh3e9361y7nj

Unique identifier for the source branch to merge from.

Query parameters

target_branch_idstring required

The ID of the target branch to merge into.

Example:agtbrch_8901k4t9z5defmb8vh3e9361y7nj

The ID of the target branch to merge into.

Headers

xi-api-keystring nullable

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.

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.

Request body

archive_source_branchboolean

Whether to archive the source branch after merging

forceboolean

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

Response

Successful Response

{"stackTrail":"paths:/v1/convai/agents/{agent_id}/branches/{source_branch_id}/merge:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}