POST api/timeTracking/UpdateTimeSpentHistoryItem
Update a Time spent History item based on history item id,
Request Information
URI Parameters
None.
Body Parameters
TimeSpentHistoryItemBinderName | Description | Type | Additional information |
---|---|---|---|
HistoryItemId | integer |
None. |
|
OwnerId | integer |
None. |
|
Date | date |
None. |
|
TimeHourlyRate | decimal number |
None. |
|
CategoryId | integer |
None. |
|
Note | string |
None. |
|
ProjectId | integer |
None. |
|
TaskId | integer |
None. |
|
TimeValue |
If TimeValue.Option eqals 0, TimeValue.Value should be described as the amount of minutes, else TimeValue.Value should use format like '1d2h3m'. |
ParamValueObject |
None. |
Request Formats
application/json, text/json
Sample:
{ "HistoryItemId": 1, "OwnerId": 2, "Date": "2024-12-21 19:22:48", "TimeHourlyRate": 4.1, "CategoryId": 5, "Note": "sample string 6", "ProjectId": 7, "TaskId": 8, "TimeValue": { "Value": "sample string 1", "Option": 2 } }
application/xml, text/xml
Sample:
<TimeSpentHistoryItemBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding"> <ProjectId>7</ProjectId> <TaskId>8</TaskId> <TimeValue> <Option>2</Option> <Value>sample string 1</Value> </TimeValue> <CategoryId>5</CategoryId> <Date>2024-12-21T19:22:48.4454818-08:00</Date> <Note>sample string 6</Note> <OwnerId>2</OwnerId> <TimeHourlyRate>4.1</TimeHourlyRate> <HistoryItemId>1</HistoryItemId> </TimeSpentHistoryItemBinder>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Update a Time spent History item based on history item id,
API_Data_TaskRollupTimeInfoName | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
Error | ErrorInfo |
None. |
|
Data | TaskRollupTimeInfo |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "Error": { "ErrorCode": 1, "ErrorMessage": "sample string 1" }, "Data": { "TimeSpent": { "Value": 1, "DisplayValue": "sample string 2" }, "TimeRemaining": { "Value": 1, "DisplayValue": "sample string 2" }, "TimeTotal": { "Value": 1, "DisplayValue": "sample string 2" } } }
application/xml, text/xml
Sample:
<API_Data_TaskRollupTimeInfo 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:TimeRemaining> <DisplayValue>sample string 2</DisplayValue> <Value>1</Value> </d2p1:TimeRemaining> <d2p1:TimeSpent> <DisplayValue>sample string 2</DisplayValue> <Value>1</Value> </d2p1:TimeSpent> <d2p1:TimeTotal> <DisplayValue>sample string 2</DisplayValue> <Value>1</Value> </d2p1:TimeTotal> </Data> <Error> <ErrorCode>1</ErrorCode> <ErrorMessage>sample string 1</ErrorMessage> </Error> <Success>true</Success> </API_Data_TaskRollupTimeInfo>