Fixed put method so that the body is being sent correctly