Issue refs #1598: implement template updating, update api-client