Hi Alex,
I have a sample for you.
- The first command enters the timesheet entry (use the work item and user id from your account).
- The second command submits the entered timesheet (use the id from the result of the first command)
Curl https://api2.clarizen.com/v2.0/services/data/objects/timesheet -X PUT -d {"workitem":"/task/3pf9wh4v4vmpazrskzr2sxfuo0","reportedby":"/user/1oxqvm75aku2a8ynipdazcxk7391","duration":"4h","reportedDate":"2016-04-19"}
Curl https://api2.clarizen.com/v2.0/services/data/lifecycle -X POST -d {"ids":["/Timesheet/50rsx2mrfyhqvnpp69lf4c3tq0"],"operation":"Submit"}
Hope this helps,
Ophir