POST for create, PUT for update