function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
janakijanaki 

Salesforce Standard REST API To Insert Leads

We have a use case to build API to accept list of leads in JSON Format to insert leads in Salesforce and have to return the response with inserted records count and error messages if any
For this, I have tried to use the following standard salesforce API.
/services/data/v36.0/composite/tree/Lead
But as i analysed, this API not doing partial insert in case of any record failure.
Any one suggest me on whether we can use any Standard SF API or we need to have Custom API ? And is there any way to do partial insertion with Salesforce SF API ?