POST api/timeTracking/DeleteTimeSpentHistoryItem
Delete a Time Spent history item based on history item id
Request Information
URI Parameters
None.
Body Parameters
SimpleTimeSpentHistoryItemBinder| Name | Description | Type | Additional 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
Delete a Time Spent history item based on history item id
API_Data_TaskRollupTimeInfo| Name | 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>