Timesheet Entries 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+tc9_et__Interpretation_Rule__c+WHERE+name=%27daily+rate%27","method":"GET","referenceId":"interpretationRuleId"},{"url":"/services/data/vundefined/sobjects/tc9_et__Timesheet__c","method":"POST","referenceId":"timesheetId","body":{"tc9_et__Approval_Status__c":"Approved","tc9_et__Approved_Rejected_Date__c":"2022-12-20","tc9_et__Approved_Rejected_By__c":"0038c000036fMZXAA2","tc9_et__Assignment__c":"a6l8c0000004QwyAAE","tc9_et__Employee__c":"0038c000038P1quAAC","tc9_et__Start_Date__c":"2022-12-19","tc9_et__End_Date__c":"2022-12-25","tc9_et__Interpretation_Rule__c":"@{interpretationRuleId.records[0].Id}","tc9_et__Payee__r":{"tc9_pr__External_ID__c":"123"},"tc9_et__Start_Day__c":"Monday","tc9_et__Submitted_Date__c":"2022-12-20","tc9_et__Transaction_Creation_Stage__c":"2","tc9_et__Notify_Employee_on_Approval__c":false,"tc9_et__External_ID__c":"123"}}]}'