Assign return value of put or patch properly.