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. Version history, drafts, archived branches and traffic deployments are not copied, so the new agent routes all traffic to its main branch.

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.
namestring or nullOptional
A name to make the agent easier to find

Response

Successful Response
agent_idstring
ID of the created agent

Errors

422
Unprocessable Entity Error