change api method name to update