You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I can see, the request for updating a company is actually a PATCH so that does make sense.
I then tried to add the following attribute into CompanyService.php:
Which again, makes sense, PATCH shouldn't have the 'id' parameter directly into the request but only in the URL.
The only workaround I found is to unset the ID before making a request if the $updateVerb equals to 'patch'.
I made the following change to the restfulRequest() in Infusionsoft.php:
Hello, I'm trying to update a company/product via REST endpoint and I have the following code:
This results in an error:
As far as I can see, the request for updating a company is actually a PATCH so that does make sense.
I then tried to add the following attribute into CompanyService.php:
I now have the following error:
With the following request:
Which again, makes sense, PATCH shouldn't have the 'id' parameter directly into the request but only in the URL.
The only workaround I found is to unset the ID before making a request if the $updateVerb equals to 'patch'.
I made the following change to the restfulRequest() in Infusionsoft.php:
Am I doing something wrong? Is there another way to update companies or products via REST endopoints?
Thanks.
The text was updated successfully, but these errors were encountered: