[SalesForce] Method PATCH is not defined in RFC 2068 and is not supported by the Servlet API

I'm using PATCH /composite/sobjects URI as stated in the REST API Developer Guide.

But I'm receiving this error:

Method PATCH is not defined in RFC 2068 and is not supported by the Servlet API

The response is immediate. My request body is JSON. The response gives no hints that body is malformed.

Why do I get this error? How can I fix it?

Best Answer

In order to use Composite API, you have to use full URL including services/data/vxx.0

eg:

https://myorg.salesforce.com/services/data/v44.0/composite/sobjects
Related Topic