fix bug in endpoint update

fixed bad syntax in update of dict endpoint