POST api/Workflow/SetState

Request Information

URI Parameters

None.

Body Parameters

WorkflowUpdateState
NameDescriptionTypeAdditional information
ProjectId

integer

None.

ProjectType

integer

None.

WorkflowId

integer

None.

State

WorkflowState

None.

Request Formats

application/json, text/json

Sample:
{
  "ProjectId": 1,
  "ProjectType": 2,
  "WorkflowId": 3,
  "State": {
    "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
    }
  }
}

application/xml, text/xml

Sample:
<WorkflowUpdateState xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Workflow">
  <ProjectId>1</ProjectId>
  <ProjectType>2</ProjectType>
  <State>
    <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>
  </State>
  <WorkflowId>3</WorkflowId>
</WorkflowUpdateState>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

API_Data_WorkflowState
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

ErrorInfo

None.

Data

WorkflowState

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "ErrorCode": 1,
    "ErrorMessage": "sample string 1"
  },
  "Data": {
    "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
    }
  }
}

application/xml, text/xml

Sample:
<API_Data_WorkflowState 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: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>
  </Data>
  <Error>
    <ErrorCode>1</ErrorCode>
    <ErrorMessage>sample string 1</ErrorMessage>
  </Error>
  <Success>true</Success>
</API_Data_WorkflowState>