Client Contact Composite
POST {{url}}/services/data/v{{version}}/composite/
Request Body
{"allOrNone"=>true, "compositeRequest"=>[{"url"=>"/services/data/v{{version}}/query?q=SELECT+id+FROM+account+where+name=%27Guardian+Day+Care%27", "method"=>"GET", "referenceId"=>"accountId"}, {"url"=>"/services/data/v{{version}}/query?q=SELECT+id+FROM+recordtype+WHERE+sobjecttype='contact'+AND+name='client+contact'", "method"=>"GET", "referenceId"=>"recordTypeId"}, {"url"=>"/services/data/v{{version}}/sobjects/contact", "method"=>"POST", "referenceId"=>"clientContactId", "body"=>{"firstName"=>"test", "lastName"=>"client contact", "accountId"=>"@{accountId.records[0].Id}", "email"=>"email@email.com", "mailingStreet"=>"mailing street", "mailingCity"=>"mailing street", "mailingState"=>"mailing state", "mailingPostalCode"=>"mailing postcode", "mailingCountry"=>"mailing country", "otherStreet"=>"other street", "otherCity"=>"other city", "otherState"=>"other state", "otherPostalCode"=>"other postcode", "otherCountry"=>"other country", "Description"=>"", "tc9_pr__External_ID__c"=>"123", "RecordTypeId"=>"@{recordTypeId.records[0].Id}"}}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Authorization | string |