I am trying to do a Upsert operation on a Salesforce Object named "Lead" from a node js. While sending the data i am getting the below error response back from Salesforce
{
"success": false,
"errors": [
{
"statusCode": "METHOD_NOT_ALLOWED",
"message": "HTTP Method 'PATCH' not allowed. Allowed are GET,HEAD,POST"
}
]
}
Strange part is that the same upsert functionality is working fine for other Salesforce object but I am getting only for "Lead" object. Please help to share your inputs if someone has a solution.
Thank you for all your support.
Thanks, Janakiram.
does your user have Profile (or permission set) with "Create" and "Edit" right on Leads? What url are you calling? Does your Lead object have an external id field & your user can see/edit it?