POST api/taskLink/Add
Add links
Request Information
URI Parameters
None.
Body Parameters
TaskLinkCreateBinderName | Description | Type | Additional information |
---|---|---|---|
ProjectId | integer |
None. |
|
TaskId | integer |
None. |
|
LinkedItems | Collection of LinkedItem |
None. |
Request Formats
application/json, text/json
Sample:
{ "ProjectId": 1, "TaskId": 2, "LinkedItems": [ { "ProjectId": 1, "ItemId": 2, "LinkType": 3, "LinkedAs": 4, "LinkComment": "sample string 5" }, { "ProjectId": 1, "ItemId": 2, "LinkType": 3, "LinkedAs": 4, "LinkComment": "sample string 5" } ] }
application/xml, text/xml
Sample:
<TaskLinkCreateBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding"> <LinkedItems> <LinkedItem> <ItemId>2</ItemId> <LinkComment>sample string 5</LinkComment> <LinkType>3</LinkType> <LinkedAs>4</LinkedAs> <ProjectId>1</ProjectId> </LinkedItem> <LinkedItem> <ItemId>2</ItemId> <LinkComment>sample string 5</LinkComment> <LinkType>3</LinkType> <LinkedAs>4</LinkedAs> <ProjectId>1</ProjectId> </LinkedItem> </LinkedItems> <ProjectId>1</ProjectId> <TaskId>2</TaskId> </TaskLinkCreateBinder>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Add 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>