Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Create Records Using sObject Rows by External ID
As a special case, in API version 37.0 and later, you can create a record with a POST request to /services/data/vXX.X/sobjects/sObjectName/Id. Because Id has a null value, it is omitted from the request, and the record is created according to the request body. Creating records with this resource is useful because you can use the same URI in each POST request for each new record. In this case, you are not required to specify an external ID to create a record.
Syntax
URI: /services/data/vXX.X/sobjects/sObject/Id
Formats: JSON, XML
HTTP Method: POST
Authentication: Authorization: Bearer token
Parameters: None
Example
Example Request
1curl -X POST https://MyDomainName.my.salesforce.com/services/data/v67.0/sobjects/Account/Id -H "Authorization: Bearer token" -H "Content-Type: application/json" -d "@newaccount.json"