Employee Composite

POST {{url}}/services/data/v{{version}}/composite/

Request Body

{"allOrNone"=>true, "compositeRequest"=>[{"url"=>"/services/data/v{{version}}/query?q=select+Id+from+recordtype+where+sobjecttype=%27contact%27+and+name=%27employee%27", "method"=>"GET", "referenceId"=>"recType"}, {"url"=>"/services/data/v{{version}}/query?q=select+Id+from+account+where+name=%27employees%27", "method"=>"GET", "referenceId"=>"accountId"}, {"url"=>"/services/data/v{{version}}/sobjects/contact", "method"=>"POST", "referenceId"=>"employee", "body"=>{"firstName"=>"Test", "lastName"=>"Employee", "accountId"=>"@{accountId.records[0].Id}", "RecordTypeId"=>"@{recType.records[0].Id}"}}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Authorizationstring