Update API#PUT logic