Employee 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+recordtype+where+sobjecttype=%27contact%27+and+name=%27employee%27","method":"GET","referenceId":"recType"},{"url":"/services/data/vundefined/query?q=select+Id+from+account+where+name=%27employees%27","method":"GET","referenceId":"accountId"},{"url":"/services/data/vundefined/sobjects/contact","method":"POST","referenceId":"employee","body":{"firstName":"Test","lastName":"Employee","accountId":"@{accountId.records[0].Id}","RecordTypeId":"@{recType.records[0].Id}"}}]}'