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 TimesheetWeeklyRecord
NameDescriptionTypeAdditional 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:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.