Timesheet Item 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 '{"compositeRequest":[{"method":"GET","url":"/services/data/vundefined/query/?q=SELECT+Id+FROM+tc9_et__Timesheet__c+WHERE+Name='timesheetname'","referenceId":"timesheetRef"},{"method":"GET","url":"/services/data/vundefined/query/?q=SELECT+Id+FROM+tc9_et__Payee_Allowance_Record__c+WHERE+Name='allowanceRecordname'","referenceId":"allowanceRecordRef"},{"method":"POST","url":"/services/data/vundefined/sobjects/tc9_et__Timesheet_Item__c","referenceId":"timesheetItemRef","body":{"tc9_et__Employee__r":{"tc9_pr__External_ID__c":"ExternalId1"},"tc9_et__Payee__r":{"tc9_pr__External_ID__c":"ExternalId2"},"tc9_et__Assignment__r":{"tc9_pr__External_ID__c":"ExternalId3"},"tc9_et__Timesheet__c":"@{timesheetRef.records[0].Id}","tc9_et__Payee_Allowance_Record__c":"@{allowanceRecordRef.records[0].Id}","tc9_et__Date_Incurred__c":"2023-07-31","tc9_et__Quantity__c":1}}]}'