Client Contact Composite
POST
{{url}}/services/data/v{{version}}/composite/
Body
PARAM
Key |
Datatype |
Required |
Description |
HEADERS
Key |
Datatype |
Required |
Description |
Content-Type
|
string |
|
|
Authorization
|
string |
|
|
RESPONSES
status
curl -X POST 'undefined/services/data/vundefined/composite/' -H 'Content-Type: application/json' -H 'Authorization: Bearer undefined' -d '{"allOrNone":true,"compositeRequest":[{"url":"/services/data/vundefined/query?q=SELECT+id+FROM+account+where+name=%27Guardian+Day+Care%27","method":"GET","referenceId":"accountId"},{"url":"/services/data/vundefined/query?q=SELECT+id+FROM+recordtype+WHERE+sobjecttype='contact'+AND+name='client+contact'","method":"GET","referenceId":"recordTypeId"},{"url":"/services/data/vundefined/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}"}}]}'