Update an agent

Updates the properties of an existing agent.