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

Request Body

{"allOrNone"=>false, "records"=>[{"attributes"=>{"type"=>"Account"}, "id"=>"<account-id>", "NumberOfEmployees"=>27000}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

[{&quot;id&quot;:&quot;001...&quot;,&quot;success&quot;:true,&quot;errors&quot;:[]}]