POST api/Time
Request Information
URI Parameters
None.
Body Parameters
TimeEntry| Name | Description | Type | Additional 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:35:45.8797775",
"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:35:45.8797775+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:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.