1

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?

  • which rest client are you using? – Pranay Jaiswal Jan 28 at 21:47
  • playframework WSClient. Debugger shows that it is setting request method to PATCH. – Mark Dufresne Jan 28 at 21:48
  • I was able to do this via 'Postman' and Salesforce workbench. It can happen that your rest client does not support PATCH – Pranay Jaiswal Jan 28 at 21:49
  • mind pasting, your full uri? – Mark Dufresne Jan 28 at 22:02
  • https://myorg.salesforce.cm/services/data/v44.0/composite/sobjects – Pranay Jaiswal Jan 28 at 22:04
1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.