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_id
The id of an agent. This is returned on agent creation.
Headers
xi-api-key
Request
This endpoint expects an object.
name
A name to make the agent easier to find
Response
Successful Response
agent_id
ID of the created agent
Errors
422
Unprocessable Entity Error