POST api/timeTracking/GetTimeSpentHistoryItem

Get a time spent history entry based on history item id

Request Information

URI Parameters

None.

Body Parameters

SimpleTimeSpentHistoryItemBinder
NameDescriptionTypeAdditional information
ProjectId

integer

None.

TaskId

integer

None.

HistoryItemId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ProjectId": 1,
  "TaskId": 2,
  "HistoryItemId": 3
}

application/xml, text/xml

Sample:
<SimpleTimeSpentHistoryItemBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding">
  <HistoryItemId>3</HistoryItemId>
  <ProjectId>1</ProjectId>
  <TaskId>2</TaskId>
</SimpleTimeSpentHistoryItemBinder>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Get a time spent history entry based on history item id

API_Data_TimeSpentHistoryItem
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

ErrorInfo

None.

Data

TimeSpentHistoryItem

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "ErrorCode": 1,
    "ErrorMessage": "sample string 1"
  },
  "Data": {
    "TimeItemId": 1,
    "OwnerId": 2,
    "OwnerName": "sample string 3",
    "Date": "2024-12-21 18:45:44",
    "CategoryId": 1,
    "CategoryName": "sample string 4",
    "TimeValue": {
      "Value": 1,
      "DisplayValue": "sample string 2"
    },
    "HoulyRate": 1.1,
    "Note": "sample string 5"
  }
}

application/xml, text/xml

Sample:
<API_Data_TimeSpentHistoryItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Entities">
    <d2p1:CategoryId>1</d2p1:CategoryId>
    <d2p1:CategoryName>sample string 4</d2p1:CategoryName>
    <d2p1:Date>2024-12-21T18:45:44.9747989-08:00</d2p1:Date>
    <d2p1:HoulyRate>1.1</d2p1:HoulyRate>
    <d2p1:Note>sample string 5</d2p1:Note>
    <d2p1:OwnerId>2</d2p1:OwnerId>
    <d2p1:OwnerName>sample string 3</d2p1:OwnerName>
    <d2p1:TimeItemId>1</d2p1:TimeItemId>
    <d2p1:TimeValue>
      <DisplayValue>sample string 2</DisplayValue>
      <Value>1</Value>
    </d2p1:TimeValue>
  </Data>
  <Error>
    <ErrorCode>1</ErrorCode>
    <ErrorMessage>sample string 1</ErrorMessage>
  </Error>
  <Success>true</Success>
</API_Data_TimeSpentHistoryItem>