POST api/Workflow/CopySubWorkflow
Copy a sub workflow to a project
Request Information
URI Parameters
None.
Body Parameters
CopySubWorkflowBinderName | Description | Type | Additional information |
---|---|---|---|
FromProjectId | integer |
None. |
|
FromSubWorkflowName | string |
None. |
|
TargetProjectId | integer |
None. |
|
TargetSubWorkflowName | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "FromProjectId": 1, "FromSubWorkflowName": "sample string 2", "TargetProjectId": 3, "TargetSubWorkflowName": "sample string 4" }
application/xml, text/xml
Sample:
<CopySubWorkflowBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding"> <FromProjectId>1</FromProjectId> <FromSubWorkflowName>sample string 2</FromSubWorkflowName> <TargetProjectId>3</TargetProjectId> <TargetSubWorkflowName>sample string 4</TargetSubWorkflowName> </CopySubWorkflowBinder>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Copy a sub workflow to a project
API_Data_CopyWorkflowResultName | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
Error | ErrorInfo |
None. |
|
Data | CopyWorkflowResult |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "Error": { "ErrorCode": 1, "ErrorMessage": "sample string 1" }, "Data": { "CreatedSubWorkflowId": 1, "AddedStates": [ { "Id": 1, "Name": "sample string 2" }, { "Id": 1, "Name": "sample string 2" } ] } }
application/xml, text/xml
Sample:
<API_Data_CopyWorkflowResult 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:AddedStates> <NameIdPair> <Id>1</Id> <Name>sample string 2</Name> </NameIdPair> <NameIdPair> <Id>1</Id> <Name>sample string 2</Name> </NameIdPair> </d2p1:AddedStates> <d2p1:CreatedSubWorkflowId>1</d2p1:CreatedSubWorkflowId> </Data> <Error> <ErrorCode>1</ErrorCode> <ErrorMessage>sample string 1</ErrorMessage> </Error> <Success>true</Success> </API_Data_CopyWorkflowResult>