How to submit a timesheet in Clarity using Rest API
In order to submit a timesheet, the prerequisite is to create the timesheet in clarity and once you have the timesheet Id then you can create the sample JSON response and submit the timesheet
URL :- http://hostname/ppm/rest/v1/timesheets/{timesheetinternalid}
Method :- PUT
Additional Header :- x-api-force-patch = true
JSON Body :-
{
"_internalId": 5021xxx,
"submittedBy": "1",
"status": "1"
}
internalid is the timesheet internal ID.
submittedBy is the internal id of the resource who submitted the timesheet.
Status = 1 is Submitted.
Status = 2 is returned.
Status = 3 is Approved.
More information on API can be found in our product API Documentation