You need to sign in to do that
Don't have an account?
How do you use the PATCH method in apex callouts
For various reasons, I'm writing Apex code that calls out to the REST API. I'm able to authenticate, insert, query, delete, etc with no problem Updates via the REST API require the PATCH method to be used in the HttpRequest class. However, it seems that the HttpRequest class does not support the PATCH method.
Has anyone else experienced this inconsistency in across the APIs? Has anyone figured out how to do this or a workaround?
Thanks in advance.
You can just add '?_HttpMethod=PATCH' as a query string parameter to the REST API URI and make a regular POST request. That should do the trick.
Awesome, that worked, thanks.