switched POST and PUT