PUT api/timesheet/weekly
Ingest timesheet information, each record is for a user per week and can have an entry for each day.
Request Information
URI Parameters
None.
Body Parameters
The Users details
Collection of TimesheetWeeklyRecordName | Description | Type | Additional information |
---|---|---|---|
weekEnding |
Week Ending date in the format yyyy-mm-dd, this should represent a Sunday. |
date |
None. |
username |
The unique user name |
string |
None. |
hours |
All resourced items for this user for this week |
Collection of TimesheetWeeklyHours |
None. |
rmIngestTime |
If it's ingested |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
[ { "weekEnding": "2024-12-22T06:23:09.8369497+00:00", "username": "sample string 2", "hours": [ { "project": 1, "resource": 2, "mon": 3.0, "tues": 4.0, "wed": 5.0, "thurs": 6.0, "fri": 7.0, "sat": 8.0, "sun": 9.0 }, { "project": 1, "resource": 2, "mon": 3.0, "tues": 4.0, "wed": 5.0, "thurs": 6.0, "fri": 7.0, "sat": 8.0, "sun": 9.0 } ], "rmIngestTime": true }, { "weekEnding": "2024-12-22T06:23:09.8369497+00:00", "username": "sample string 2", "hours": [ { "project": 1, "resource": 2, "mon": 3.0, "tues": 4.0, "wed": 5.0, "thurs": 6.0, "fri": 7.0, "sat": 8.0, "sun": 9.0 }, { "project": 1, "resource": 2, "mon": 3.0, "tues": 4.0, "wed": 5.0, "thurs": 6.0, "fri": 7.0, "sat": 8.0, "sun": 9.0 } ], "rmIngestTime": true } ]
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.