Logo
Salesforce Developers API Documentation

SObject Collections Update

PATCH {{_endpoint}}/services/data/v{{version}}/composite/sobjects

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.

https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_sobjects_collections.htm

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string




RESPONSES

status OK

[ { "id": "001...", "success": true, "errors": [] } ]



Curl
curl -X PATCH '/services/data/v61.0/composite/sobjects' -H 'Content-Type: application/json' -d '{"allOrNone":false,"records":[{"attributes":{"type":"Account"},"id":"\u003caccount-id\u003e","NumberOfEmployees":27000}]}'

ENDPOINTS