merge-api / merge-node-client

The Node SDK for accessing various Merge Unified APIs
Other
10 stars 6 forks source link

CRM opportunity.partialUpdate documentation is incorrect #13

Open lazjake opened 1 year ago

lazjake commented 1 year ago

The documentation and types for PatchedOpportunityRequest are all marked as optional. However, the endpoint returns an error if all fields are not passed in when making a request to Salesforce.

{
  "warnings": [],
  "errors": [
    {
      "source": null,
      "title": "Error",
      "detail": "We've encountered an error while sending this request to the Salesforce API. Please contact hello@merge.dev if this problem persists.",
      "problem_type": "ERROR"
    }
  ]
}

Tested that the opportuntity patch endpoint works as expected in a curl request if all model fields are passed in