Newer Version Available

This content describes an older version of this product. View Latest

SObject Collections

Executes actions on multiple records in one request. Use SObject Collections to reduce the number of round-trips between the client and server. This resource is available in API version 42.0 and later.
URI
The URI to use depends on the operation.
Create
POST /vXX.X/composite/sobjects
Retrieve
GET /vXX.X/composite/sobjects/SobjectName?ids=recordId,recordId&fields=fieldname,fieldname
Update
PATCH /vXX.X/composite/sobjects
Delete
DELETE /vXX.X/composite/sobjects?ids=recordId,recordId
Formats
JSON, XML
HTTP method
GET, DELETE, PATCH, POST
Authentication
Authorization: Bearer token

The parameters, request body, and response body you use depend on the operation. For details, see the specific operation.