POST api/Workflow/SetDetail
Request Information
URI Parameters
None.
Body Parameters
WorkflowUpdateInfoName | Description | Type | Additional information |
---|---|---|---|
RemovedStates | Collection of integer |
None. |
|
RemovedTransitions | Collection of integer |
None. |
|
States | Collection of WorkflowState |
None. |
|
Transitions | Collection of WorkflowTransition |
None. |
|
ProjectId | integer |
None. |
|
ProjectType | integer |
None. |
|
Id | integer |
None. |
|
Name | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "RemovedStates": [ 1, 2 ], "RemovedTransitions": [ 1, 2 ], "States": [ { "Id": 1, "Name": "sample string 2", "IsClosed": 3, "Gui": { "Id": 1, "X": 2, "Y": 3, "Z": 4, "Width": 5, "Height": 6, "Shape": 7, "BorderColor": "sample string 8", "FillColor": "sample string 9", "FillColor1": "sample string 10", "TextColor": "sample string 11", "nBorderColor": 12, "nFillColor": 13, "nFillColor1": 14, "nTextColor": 15 } }, { "Id": 1, "Name": "sample string 2", "IsClosed": 3, "Gui": { "Id": 1, "X": 2, "Y": 3, "Z": 4, "Width": 5, "Height": 6, "Shape": 7, "BorderColor": "sample string 8", "FillColor": "sample string 9", "FillColor1": "sample string 10", "TextColor": "sample string 11", "nBorderColor": 12, "nFillColor": 13, "nFillColor1": 14, "nTextColor": 15 } } ], "Transitions": [ { "Id": 1, "Name": "sample string 2", "StateFrom": 3, "StateTo": 4, "Gui": { "Id": 1, "Z": 2, "SourceAnchor": "sample string 3", "TargetAnchor": "sample string 4", "TextPosition": "sample string 5", "Vertices": "sample string 6", "StrokeColor": "sample string 7", "TextColor": "sample string 8", "nStrokeColor": 9, "nTextColor": 10 } }, { "Id": 1, "Name": "sample string 2", "StateFrom": 3, "StateTo": 4, "Gui": { "Id": 1, "Z": 2, "SourceAnchor": "sample string 3", "TargetAnchor": "sample string 4", "TextPosition": "sample string 5", "Vertices": "sample string 6", "StrokeColor": "sample string 7", "TextColor": "sample string 8", "nStrokeColor": 9, "nTextColor": 10 } } ], "ProjectId": 1, "ProjectType": 2, "Id": 3, "Name": "sample string 4" }
application/xml, text/xml
Sample:
<WorkflowUpdateInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Workflow"> <Id>3</Id> <Name>sample string 4</Name> <ProjectId>1</ProjectId> <ProjectType>2</ProjectType> <States> <WorkflowState> <Gui> <BorderColor>sample string 8</BorderColor> <FillColor>sample string 9</FillColor> <FillColor1>sample string 10</FillColor1> <Height>6</Height> <Id>1</Id> <Shape>7</Shape> <TextColor>sample string 11</TextColor> <Width>5</Width> <X>2</X> <Y>3</Y> <Z>4</Z> <nBorderColor>12</nBorderColor> <nFillColor>13</nFillColor> <nFillColor1>14</nFillColor1> <nTextColor>15</nTextColor> </Gui> <Id>1</Id> <IsClosed>3</IsClosed> <Name>sample string 2</Name> </WorkflowState> <WorkflowState> <Gui> <BorderColor>sample string 8</BorderColor> <FillColor>sample string 9</FillColor> <FillColor1>sample string 10</FillColor1> <Height>6</Height> <Id>1</Id> <Shape>7</Shape> <TextColor>sample string 11</TextColor> <Width>5</Width> <X>2</X> <Y>3</Y> <Z>4</Z> <nBorderColor>12</nBorderColor> <nFillColor>13</nFillColor> <nFillColor1>14</nFillColor1> <nTextColor>15</nTextColor> </Gui> <Id>1</Id> <IsClosed>3</IsClosed> <Name>sample string 2</Name> </WorkflowState> </States> <Transitions> <WorkflowTransition> <Gui> <Id>1</Id> <SourceAnchor>sample string 3</SourceAnchor> <StrokeColor>sample string 7</StrokeColor> <TargetAnchor>sample string 4</TargetAnchor> <TextColor>sample string 8</TextColor> <TextPosition>sample string 5</TextPosition> <Vertices>sample string 6</Vertices> <Z>2</Z> <nStrokeColor>9</nStrokeColor> <nTextColor>10</nTextColor> </Gui> <Id>1</Id> <Name>sample string 2</Name> <StateFrom>3</StateFrom> <StateTo>4</StateTo> </WorkflowTransition> <WorkflowTransition> <Gui> <Id>1</Id> <SourceAnchor>sample string 3</SourceAnchor> <StrokeColor>sample string 7</StrokeColor> <TargetAnchor>sample string 4</TargetAnchor> <TextColor>sample string 8</TextColor> <TextPosition>sample string 5</TextPosition> <Vertices>sample string 6</Vertices> <Z>2</Z> <nStrokeColor>9</nStrokeColor> <nTextColor>10</nTextColor> </Gui> <Id>1</Id> <Name>sample string 2</Name> <StateFrom>3</StateFrom> <StateTo>4</StateTo> </WorkflowTransition> </Transitions> <RemovedStates xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </RemovedStates> <RemovedTransitions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </RemovedTransitions> </WorkflowUpdateInfo>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
API_Data_WorkflowInfoName | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
Error | ErrorInfo |
None. |
|
Data | WorkflowInfo |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "Error": { "ErrorCode": 1, "ErrorMessage": "sample string 1" }, "Data": { "States": [ { "Id": 1, "Name": "sample string 2", "IsClosed": 3, "Gui": { "Id": 1, "X": 2, "Y": 3, "Z": 4, "Width": 5, "Height": 6, "Shape": 7, "BorderColor": "sample string 8", "FillColor": "sample string 9", "FillColor1": "sample string 10", "TextColor": "sample string 11", "nBorderColor": 12, "nFillColor": 13, "nFillColor1": 14, "nTextColor": 15 } }, { "Id": 1, "Name": "sample string 2", "IsClosed": 3, "Gui": { "Id": 1, "X": 2, "Y": 3, "Z": 4, "Width": 5, "Height": 6, "Shape": 7, "BorderColor": "sample string 8", "FillColor": "sample string 9", "FillColor1": "sample string 10", "TextColor": "sample string 11", "nBorderColor": 12, "nFillColor": 13, "nFillColor1": 14, "nTextColor": 15 } } ], "Transitions": [ { "Id": 1, "Name": "sample string 2", "StateFrom": 3, "StateTo": 4, "Gui": { "Id": 1, "Z": 2, "SourceAnchor": "sample string 3", "TargetAnchor": "sample string 4", "TextPosition": "sample string 5", "Vertices": "sample string 6", "StrokeColor": "sample string 7", "TextColor": "sample string 8", "nStrokeColor": 9, "nTextColor": 10 } }, { "Id": 1, "Name": "sample string 2", "StateFrom": 3, "StateTo": 4, "Gui": { "Id": 1, "Z": 2, "SourceAnchor": "sample string 3", "TargetAnchor": "sample string 4", "TextPosition": "sample string 5", "Vertices": "sample string 6", "StrokeColor": "sample string 7", "TextColor": "sample string 8", "nStrokeColor": 9, "nTextColor": 10 } } ], "ProjectId": 1, "ProjectType": 2, "Id": 3, "Name": "sample string 4" } }
application/xml, text/xml
Sample:
<API_Data_WorkflowInfo 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.Workflow"> <d2p1:Id>3</d2p1:Id> <d2p1:Name>sample string 4</d2p1:Name> <d2p1:ProjectId>1</d2p1:ProjectId> <d2p1:ProjectType>2</d2p1:ProjectType> <d2p1:States> <d2p1:WorkflowState> <d2p1:Gui> <d2p1:BorderColor>sample string 8</d2p1:BorderColor> <d2p1:FillColor>sample string 9</d2p1:FillColor> <d2p1:FillColor1>sample string 10</d2p1:FillColor1> <d2p1:Height>6</d2p1:Height> <d2p1:Id>1</d2p1:Id> <d2p1:Shape>7</d2p1:Shape> <d2p1:TextColor>sample string 11</d2p1:TextColor> <d2p1:Width>5</d2p1:Width> <d2p1:X>2</d2p1:X> <d2p1:Y>3</d2p1:Y> <d2p1:Z>4</d2p1:Z> <d2p1:nBorderColor>12</d2p1:nBorderColor> <d2p1:nFillColor>13</d2p1:nFillColor> <d2p1:nFillColor1>14</d2p1:nFillColor1> <d2p1:nTextColor>15</d2p1:nTextColor> </d2p1:Gui> <d2p1:Id>1</d2p1:Id> <d2p1:IsClosed>3</d2p1:IsClosed> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:WorkflowState> <d2p1:WorkflowState> <d2p1:Gui> <d2p1:BorderColor>sample string 8</d2p1:BorderColor> <d2p1:FillColor>sample string 9</d2p1:FillColor> <d2p1:FillColor1>sample string 10</d2p1:FillColor1> <d2p1:Height>6</d2p1:Height> <d2p1:Id>1</d2p1:Id> <d2p1:Shape>7</d2p1:Shape> <d2p1:TextColor>sample string 11</d2p1:TextColor> <d2p1:Width>5</d2p1:Width> <d2p1:X>2</d2p1:X> <d2p1:Y>3</d2p1:Y> <d2p1:Z>4</d2p1:Z> <d2p1:nBorderColor>12</d2p1:nBorderColor> <d2p1:nFillColor>13</d2p1:nFillColor> <d2p1:nFillColor1>14</d2p1:nFillColor1> <d2p1:nTextColor>15</d2p1:nTextColor> </d2p1:Gui> <d2p1:Id>1</d2p1:Id> <d2p1:IsClosed>3</d2p1:IsClosed> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:WorkflowState> </d2p1:States> <d2p1:Transitions> <d2p1:WorkflowTransition> <d2p1:Gui> <d2p1:Id>1</d2p1:Id> <d2p1:SourceAnchor>sample string 3</d2p1:SourceAnchor> <d2p1:StrokeColor>sample string 7</d2p1:StrokeColor> <d2p1:TargetAnchor>sample string 4</d2p1:TargetAnchor> <d2p1:TextColor>sample string 8</d2p1:TextColor> <d2p1:TextPosition>sample string 5</d2p1:TextPosition> <d2p1:Vertices>sample string 6</d2p1:Vertices> <d2p1:Z>2</d2p1:Z> <d2p1:nStrokeColor>9</d2p1:nStrokeColor> <d2p1:nTextColor>10</d2p1:nTextColor> </d2p1:Gui> <d2p1:Id>1</d2p1:Id> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:StateFrom>3</d2p1:StateFrom> <d2p1:StateTo>4</d2p1:StateTo> </d2p1:WorkflowTransition> <d2p1:WorkflowTransition> <d2p1:Gui> <d2p1:Id>1</d2p1:Id> <d2p1:SourceAnchor>sample string 3</d2p1:SourceAnchor> <d2p1:StrokeColor>sample string 7</d2p1:StrokeColor> <d2p1:TargetAnchor>sample string 4</d2p1:TargetAnchor> <d2p1:TextColor>sample string 8</d2p1:TextColor> <d2p1:TextPosition>sample string 5</d2p1:TextPosition> <d2p1:Vertices>sample string 6</d2p1:Vertices> <d2p1:Z>2</d2p1:Z> <d2p1:nStrokeColor>9</d2p1:nStrokeColor> <d2p1:nTextColor>10</d2p1:nTextColor> </d2p1:Gui> <d2p1:Id>1</d2p1:Id> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:StateFrom>3</d2p1:StateFrom> <d2p1:StateTo>4</d2p1:StateTo> </d2p1:WorkflowTransition> </d2p1:Transitions> </Data> <Error> <ErrorCode>1</ErrorCode> <ErrorMessage>sample string 1</ErrorMessage> </Error> <Success>true</Success> </API_Data_WorkflowInfo>