POST api/Task/Copy
Copy multiple tasks to a sub project.
Request Information
URI Parameters
None.
Body Parameters
TaskCopyBinderName | Description | Type | Additional information |
---|---|---|---|
ProjectId | integer |
None. |
|
TaskIds | Collection of integer |
None. |
|
CopyToSubProjectId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "ProjectId": 1, "TaskIds": [ 1, 2 ], "CopyToSubProjectId": 2 }
application/xml, text/xml
Sample:
<TaskCopyBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding"> <CopyToSubProjectId>2</CopyToSubProjectId> <ProjectId>1</ProjectId> <TaskIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </TaskIds> </TaskCopyBinder>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Copy multiple tasks to a sub project.
API_Data_IEnumerableOfTaskCopyResultName | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
Error | ErrorInfo |
None. |
|
Data | Collection of TaskCopyResult |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "Error": { "ErrorCode": 1, "ErrorMessage": "sample string 1" }, "Data": [ { "OriginId": 1, "CreatedId": 2, "Success": true, "Reason": "sample string 4" }, { "OriginId": 1, "CreatedId": 2, "Success": true, "Reason": "sample string 4" } ] }
application/xml, text/xml
Sample:
<API_Data_ArrayOfTaskCopyResult 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:TaskCopyResult> <d2p1:Reason>sample string 4</d2p1:Reason> <d2p1:Success>true</d2p1:Success> <d2p1:CreatedId>2</d2p1:CreatedId> <d2p1:OriginId>1</d2p1:OriginId> </d2p1:TaskCopyResult> <d2p1:TaskCopyResult> <d2p1:Reason>sample string 4</d2p1:Reason> <d2p1:Success>true</d2p1:Success> <d2p1:CreatedId>2</d2p1:CreatedId> <d2p1:OriginId>1</d2p1:OriginId> </d2p1:TaskCopyResult> </Data> <Error> <ErrorCode>1</ErrorCode> <ErrorMessage>sample string 1</ErrorMessage> </Error> <Success>true</Success> </API_Data_ArrayOfTaskCopyResult>