fix http methods for create and update