1{
2 "allOrNone" : true,
3 "compositeRequest" : [{
4 "method" : "POST",
5 "url" : "/services/data/v68.0/sobjects/Account",
6 "referenceId" : "NewAccount",
7 "body" : {
8 "Name" : "Salesforce",
9 "BillingStreet" : "Landmark @ 1 Market Street",
10 "BillingCity" : "San Francisco",
11 "BillingState" : "California",
12 "Industry" : "Technology"
13 }
14 },{
15 "method" : "GET",
16 "referenceId" : "NewAccountInfo",
17 "url" : "/services/data/v68.0/sobjects/Account/@{NewAccount.id}"
18 },{
19 "method" : "POST",
20 "referenceId" : "NewContact",
21 "url" : "/services/data/v68.0/sobjects/Contact",
22 "body" : {
23 "lastname" : "John Doe",
24 "Title" : "CTO of @{NewAccountInfo.Name}",
25 "MailingStreet" : "@{NewAccountInfo.BillingStreet}",
26 "MailingCity" : "@{NewAccountInfo.BillingAddress.city}",
27 "MailingState" : "@{NewAccountInfo.BillingState}",
28 "AccountId" : "@{NewAccountInfo.Id}",
29 "Email" : "jdoe@salesforce.com",
30 "Phone" : "1234567890"
31 }
32 },{
33 "method" : "GET",
34 "referenceId" : "NewAccountOwner",
35 "url" : "/services/data/v68.0/sobjects/User/@{NewAccountInfo.OwnerId}?fields=Name,companyName,Title,City,State"
36 },{
37 "method" : "GET",
38 "referenceId" : "AccountMetadata",
39 "url" : "/services/data/v68.0/sobjects/Account/describe",
40 "httpHeaders" : {
41 "If-Modified-Since" : "Tue, 31 May 2016 18:13:37 GMT"
42 }
43 }]
44}