Skip to navigation

Duplicate agent

Create a new agent by duplicating an existing one. The new agent gets a copy of every unarchived branch of the source agent, each with the same name and description and starting from the latest version on that branch. The live traffic split is copied onto the new branches, with any share held by a branch that was not copied moved to main. Version history, drafts, archived branches, past traffic splits and experiments are not copied.

Path parameters

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

Headers

xi-api-keystringOptional

Request

This endpoint expects an object.
namestringOptional
A name to make the agent easier to find

Response

Successful Response
agent_idstring
ID of the created agent

Errors

422
Agents Duplicate Request Unprocessable Entity Error