POST TimeTrackingTimesheet/Save

Saves the specified Time Tracking Timesheet.

Request Information

URI Parameters

None.

Body Parameters

The Time Tracking Timesheet.

Time Tracking Timesheet
NameTypeAdditional informationDescription
ID integer

None.

TimeTrackingUserId integer

Required

TimeTrackingProjectId integer

Required

TimeTrackingTaskId integer

Required

TimeTrackingCustomerId integer

Required

Date date

Required

Hours decimal

Required

Comments string

None.

SystemGenerated bool

None.

Indicates whether the time sheet was system generated.

BilledAmount decimal

None.

BilledHours decimal

None.

WrittenOffHours decimal

None.

WrittenOffAmount decimal

None.

WeeklyEntries Collection of Date And Hours Struct

Read Only / System Generated

For reporting purposes - only populated with the GetWeeklyByDate and GetWeeklyByDateAndUser calls. Represents a full week of time sheet entries for a project. Returns a list of a minified Time Sheet.

MonthlyEntries Collection of Date And Hours Struct

Read Only / System Generated

For reporting purposes - only populated with the GetMonthlyByDate and GetMonthlyByDateAndUser calls. Represents a full month of time sheet entries for a project. Returns a list of a minified Time Sheet.

Locked bool

Read Only / System Generated

Time Sheets which have been billed will be in a Locked state.

LockedPartially bool

Read Only / System Generated

Indicates if a Time Sheet has been partially billed.

BillableHours decimal

Read Only / System Generated

BillableAmount decimal

Read Only / System Generated

$SaveAndToggle bool

Read Only / System Generated

For internal use only.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "TimeTrackingUserId": 2,
  "TimeTrackingProjectId": 3,
  "TimeTrackingTaskId": 4,
  "TimeTrackingCustomerId": 5,
  "Date": "2021-10-19",
  "Hours": 7.0,
  "Comments": "sample string 8",
  "SystemGenerated": true,
  "BilledAmount": 10.0,
  "BilledHours": 11.0,
  "WrittenOffHours": 12.0,
  "WrittenOffAmount": 13.0,
  "WeeklyEntries": [
    {
      "ID": 1,
      "TimesheetIDs": [
        1,
        2
      ],
      "Date": "2021-10-19",
      "Hours": 3.0,
      "Comments": "sample string 4",
      "SystemGenerated": true,
      "SystemGeneratedHours": 6.0,
      "BilledHours": 7.0,
      "WrittenOffHours": 8.0,
      "WrittenOffAmount": 9.0,
      "ConsolidatedEntries": 10,
      "Locked": true,
      "LockedPartially": true,
      "BillableHours": 13.0,
      "BillableAmount": 14.0
    },
    {
      "ID": 1,
      "TimesheetIDs": [
        1,
        2
      ],
      "Date": "2021-10-19",
      "Hours": 3.0,
      "Comments": "sample string 4",
      "SystemGenerated": true,
      "SystemGeneratedHours": 6.0,
      "BilledHours": 7.0,
      "WrittenOffHours": 8.0,
      "WrittenOffAmount": 9.0,
      "ConsolidatedEntries": 10,
      "Locked": true,
      "LockedPartially": true,
      "BillableHours": 13.0,
      "BillableAmount": 14.0
    }
  ],
  "MonthlyEntries": [
    {
      "ID": 1,
      "TimesheetIDs": [
        1,
        2
      ],
      "Date": "2021-10-19",
      "Hours": 3.0,
      "Comments": "sample string 4",
      "SystemGenerated": true,
      "SystemGeneratedHours": 6.0,
      "BilledHours": 7.0,
      "WrittenOffHours": 8.0,
      "WrittenOffAmount": 9.0,
      "ConsolidatedEntries": 10,
      "Locked": true,
      "LockedPartially": true,
      "BillableHours": 13.0,
      "BillableAmount": 14.0
    },
    {
      "ID": 1,
      "TimesheetIDs": [
        1,
        2
      ],
      "Date": "2021-10-19",
      "Hours": 3.0,
      "Comments": "sample string 4",
      "SystemGenerated": true,
      "SystemGeneratedHours": 6.0,
      "BilledHours": 7.0,
      "WrittenOffHours": 8.0,
      "WrittenOffAmount": 9.0,
      "ConsolidatedEntries": 10,
      "Locked": true,
      "LockedPartially": true,
      "BillableHours": 13.0,
      "BillableAmount": 14.0
    }
  ],
  "Locked": true,
  "LockedPartially": true,
  "BillableHours": 16.0,
  "BillableAmount": 17.0,
  "$SaveAndToggle": true,
  "$TrackingCode": "sample string 19"
}

Response Information

Resource Description

Http Response Message
NameTypeAdditional informationDescription
Version Version

None.

Content Http Content

None.

StatusCode Http Status Code

None.

ReasonPhrase string

None.

Headers Collection of Object

None.

RequestMessage Http Request Message

None.

IsSuccessStatusCode bool

None.