PUT api/Time

Request Information

URI Parameters

None.

Body Parameters

TimeEntry
NameDescriptionTypeAdditional information
Id

integer

None.

CompanyId

integer

None.

EmployeeId

integer

None.

EmployeeName

string

None.

ProjectId

integer

None.

ProjectNumber

string

None.

ProjectName

string

None.

ActivityId

integer

None.

ActivityName

string

None.

TimeTypeId

integer

None.

TimeListId

integer

None.

TimeTypeName

string

None.

Date

date

None.

Hours

decimal number

None.

Note

string

None.

IsLocked

boolean

None.

IsDeleted

boolean

None.

IsPayed

boolean

None.

IsInvoiced

boolean

None.

IsActive

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "CompanyId": 2,
  "EmployeeId": 3,
  "EmployeeName": "sample string 4",
  "ProjectId": 5,
  "ProjectNumber": "sample string 6",
  "ProjectName": "sample string 7",
  "ActivityId": 8,
  "ActivityName": "sample string 9",
  "TimeTypeId": 10,
  "TimeListId": 11,
  "TimeTypeName": "sample string 12",
  "Date": "2026-03-09T22:36:33.3308516",
  "Hours": 14.1,
  "Note": "sample string 15",
  "IsLocked": true,
  "IsDeleted": true,
  "IsPayed": true,
  "IsInvoiced": true,
  "IsActive": true
}

application/xml, text/xml

Sample:
<TimeEntry xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fagtorget.DTO.TimeAccounting">
  <ActivityId>8</ActivityId>
  <ActivityName>sample string 9</ActivityName>
  <CompanyId>2</CompanyId>
  <Date>2026-03-09T22:36:33.3308516+01:00</Date>
  <EmployeeId>3</EmployeeId>
  <EmployeeName>sample string 4</EmployeeName>
  <Hours>14.1</Hours>
  <Id>1</Id>
  <IsActive>true</IsActive>
  <IsDeleted>true</IsDeleted>
  <IsInvoiced>true</IsInvoiced>
  <IsLocked>true</IsLocked>
  <IsPayed>true</IsPayed>
  <Note>sample string 15</Note>
  <ProjectId>5</ProjectId>
  <ProjectName>sample string 7</ProjectName>
  <ProjectNumber>sample string 6</ProjectNumber>
  <TimeListId>11</TimeListId>
  <TimeTypeId>10</TimeTypeId>
  <TimeTypeName>sample string 12</TimeTypeName>
</TimeEntry>

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 'TimeEntry'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.