Newer Version Available

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

Group Operations for Fewer Round Trips with 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 45.0 and later.

Let us know in IdeaExchange which Tooling API objects you’d like to see supported by SObject Collections.

Note

URI
The URI to use depends on the operation.
Create
POST /vXX.X/composite/sobjects
Retrieve
GET /vXX.X/composite/sobjects/SobjectName?ids=recordId1,recordId2&fields=fieldname1,fieldname2
Update
PATCH /vXX.X/composite/sobjects
Delete
DELETE /vXX.X/composite/sobjects?ids=recordId1,recordId2
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.