Takes care of the API response when the patch request is sent.