added intelligence into create so it uses the right HTTP method