POST api/taskLink/Delete
Delete links
Request Information
URI Parameters
None.
Body Parameters
TaskLinkDeleteBinderName | Description | Type | Additional information |
---|---|---|---|
ProjectId | integer |
None. |
|
TaskId | integer |
None. |
|
LinkedItems | Collection of LinkedItemId |
None. |
Request Formats
application/json, text/json
Sample:
{ "ProjectId": 1, "TaskId": 2, "LinkedItems": [ { "ProjectId": 1, "ItemId": 2 }, { "ProjectId": 1, "ItemId": 2 } ] }
application/xml, text/xml
Sample:
<TaskLinkDeleteBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding"> <LinkedItems> <LinkedItemId> <ItemId>2</ItemId> <ProjectId>1</ProjectId> </LinkedItemId> <LinkedItemId> <ItemId>2</ItemId> <ProjectId>1</ProjectId> </LinkedItemId> </LinkedItems> <ProjectId>1</ProjectId> <TaskId>2</TaskId> </TaskLinkDeleteBinder>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Delete links
API_Data_IEnumerableOfTaskLinkOperationResultName | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
Error | ErrorInfo |
None. |
|
Data | Collection of TaskLinkOperationResult |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "Error": { "ErrorCode": 1, "ErrorMessage": "sample string 1" }, "Data": [ { "LinkedProjectId": 1, "LinkedItemId": 2, "Success": true, "Reason": "sample string 4" }, { "LinkedProjectId": 1, "LinkedItemId": 2, "Success": true, "Reason": "sample string 4" } ] }
application/xml, text/xml
Sample:
<API_Data_ArrayOfTaskLinkOperationResult 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:TaskLinkOperationResult> <d2p1:Reason>sample string 4</d2p1:Reason> <d2p1:Success>true</d2p1:Success> <d2p1:LinkedItemId>2</d2p1:LinkedItemId> <d2p1:LinkedProjectId>1</d2p1:LinkedProjectId> </d2p1:TaskLinkOperationResult> <d2p1:TaskLinkOperationResult> <d2p1:Reason>sample string 4</d2p1:Reason> <d2p1:Success>true</d2p1:Success> <d2p1:LinkedItemId>2</d2p1:LinkedItemId> <d2p1:LinkedProjectId>1</d2p1:LinkedProjectId> </d2p1:TaskLinkOperationResult> </Data> <Error> <ErrorCode>1</ErrorCode> <ErrorMessage>sample string 1</ErrorMessage> </Error> <Success>true</Success> </API_Data_ArrayOfTaskLinkOperationResult>