Newer Version Available
Create Records Using sObject Basic Information
Creates a new record for a specified object based on field values in the request
body.
You must specify values for required fields in the request body. Specifying values for other fields is optional.
- URI
- /services/data/vXX.X/sobjects/sObject/
- Formats
- JSON, XML
- HTTP Method
- POST
- Authentication
- Authorization: Bearer token
- Parameters
-
Parameter Description Content-Type An optional header, specifying the format for the request and response. Possible choices are:- Content-Type: application/json
- Content-Type: application/xml
sObject The name of the object. For example, Account.
A required path parameter.
- Examples
-
- For an example of creating a new record using POST, see Create a Record.
- For an example of create a new record along with providing blob data for the record, see Insert or Update Blob Data.