Patch method for Rest is not available in Pega 8.1.1
We are using Pega 8.1.1 and we need to call a REST API using the PATCH method. Unfortunately, the method PATCH is not supported for REST Connectors in Pega until 8.2.
We tried to use the method PUT and POST instead and trying to pass the header X-HTTP-Method-Override with PATCH value. But it is throwing 405 Method Not Allowed error.
This is a blocking issue for one of our major projects that relies on Pega and upgrade is not possible on it soon.
Any alternative approach is available for calling PATCH method?
***Edited by Moderator Marije to change type from Pega Academy to Product***
@OohaK021 In Pega 8.1.1, since the PATCH method is not supported for REST Connectors, you can try using a custom Java step in an activity to make the PATCH request. You can use Java's HttpURLConnection or a third-party library like Apache HttpClient to create and send the PATCH request. This approach allows you to bypass the limitations of the REST Connector in your Pega version and manually handle the PATCH request and response.
This answer came from a Pega gen-AI assistant using the below references.
As a Support Center moderator, I reviewed the answer and references for accuracy
REST connector is not automatically redirecting
Connect-REST method