Get TimeSheet Id For Period
GET {{baseUrl}}/odata/TimeSheets/GetIdForPeriod(date=2021-03-22,userId=e22bf891-4857-4284-966b-0271db3bd1e7)
TimeSheets collection function.
It is used to obtain (in the absence of - create) a timesheet, the period of which contains a specific date.
Options:
- date - the date that must fall within the timesheet period.
- userId - user ID, timesheet author.
The return value is the timesheet ID.
If there is no suitable timesheet, it will be created.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
`` | null |
RESPONSES
status: OK
{"@odata.context":"https://api.timetta.com/odata/$metadata#Edm.Guid","value":"128578e2-2afd-409b-8fb8-52171c5cdc80"}