Creates a new version of the template version of the agent.
The agent ID of the agent to migrate, if this agent is not a template, it will create a agent template from the agent provided as well