POST api/ApnAdminMasterWorkflow/Save

Request Information

URI Parameters

None.

Body Parameters

MasterWorkflowSaveParams
NameDescriptionTypeAdditional information
MasterWorkflowID

integer

None.

MasterWorkflow

string

None.

MasterWorkflowTypeID

integer

None.

Items

Collection of MasterWorkflowNode

None.

Links

Collection of MasterWorkflowLink

None.

ConfirmLostPositions

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "MasterWorkflowID": 1,
  "MasterWorkflow": "sample string 1",
  "MasterWorkflowTypeID": 1,
  "Items": [
    {
      "Key": "sample string 1",
      "MasterWorkflowItemID": 1,
      "TypeID": 2,
      "WorkflowID": 1,
      "Workflow": "sample string 3",
      "TriggerID": 1,
      "ConditionsCriteriaGroupID": 1,
      "Description": "sample string 4",
      "WorkflowContinuationTypeID": 1,
      "X": 5,
      "Y": 6,
      "WorkflowLines": 7
    },
    {
      "Key": "sample string 1",
      "MasterWorkflowItemID": 1,
      "TypeID": 2,
      "WorkflowID": 1,
      "Workflow": "sample string 3",
      "TriggerID": 1,
      "ConditionsCriteriaGroupID": 1,
      "Description": "sample string 4",
      "WorkflowContinuationTypeID": 1,
      "X": 5,
      "Y": 6,
      "WorkflowLines": 7
    }
  ],
  "Links": [
    {
      "ParentKey": "sample string 1",
      "ChildKey": "sample string 2"
    },
    {
      "ParentKey": "sample string 1",
      "ChildKey": "sample string 2"
    }
  ],
  "ConfirmLostPositions": true
}

application/xml, text/xml

Sample:
<MasterWorkflowSaveParams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Debtrak.ApnExtensions.Admin">
  <ConfirmLostPositions>true</ConfirmLostPositions>
  <Items>
    <MasterWorkflowNode>
      <ConditionsCriteriaGroupID>1</ConditionsCriteriaGroupID>
      <Description>sample string 4</Description>
      <Key>sample string 1</Key>
      <MasterWorkflowItemID>1</MasterWorkflowItemID>
      <TriggerID>1</TriggerID>
      <TypeID>2</TypeID>
      <Workflow>sample string 3</Workflow>
      <WorkflowContinuationTypeID>1</WorkflowContinuationTypeID>
      <WorkflowID>1</WorkflowID>
      <WorkflowLines>7</WorkflowLines>
      <X>5</X>
      <Y>6</Y>
    </MasterWorkflowNode>
    <MasterWorkflowNode>
      <ConditionsCriteriaGroupID>1</ConditionsCriteriaGroupID>
      <Description>sample string 4</Description>
      <Key>sample string 1</Key>
      <MasterWorkflowItemID>1</MasterWorkflowItemID>
      <TriggerID>1</TriggerID>
      <TypeID>2</TypeID>
      <Workflow>sample string 3</Workflow>
      <WorkflowContinuationTypeID>1</WorkflowContinuationTypeID>
      <WorkflowID>1</WorkflowID>
      <WorkflowLines>7</WorkflowLines>
      <X>5</X>
      <Y>6</Y>
    </MasterWorkflowNode>
  </Items>
  <Links>
    <MasterWorkflowLink>
      <ChildKey>sample string 2</ChildKey>
      <ParentKey>sample string 1</ParentKey>
    </MasterWorkflowLink>
    <MasterWorkflowLink>
      <ChildKey>sample string 2</ChildKey>
      <ParentKey>sample string 1</ParentKey>
    </MasterWorkflowLink>
  </Links>
  <MasterWorkflow>sample string 1</MasterWorkflow>
  <MasterWorkflowID>1</MasterWorkflowID>
  <MasterWorkflowTypeID>1</MasterWorkflowTypeID>
</MasterWorkflowSaveParams>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiResultOfMasterWorkflowSaveResult
NameDescriptionTypeAdditional information
Response

ApiResponse

None.

Data

MasterWorkflowSaveResult

None.

Response Formats

application/json, text/json

Sample:
{
  "Response": {
    "Success": true,
    "ErrorMessage": "sample string 2"
  },
  "Data": {
    "MasterWorkflowID": 1,
    "LostPositionCount": 1,
    "Question": "sample string 1"
  }
}

application/xml, text/xml

Sample:
<ApiResultOfMasterWorkflowSaveResult289WtATZ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Debtrak.ApnExtensions">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Debtrak.ApnExtensions.Admin">
    <d2p1:LostPositionCount>1</d2p1:LostPositionCount>
    <d2p1:MasterWorkflowID>1</d2p1:MasterWorkflowID>
    <d2p1:Question>sample string 1</d2p1:Question>
  </Data>
  <Response>
    <ErrorMessage>sample string 2</ErrorMessage>
    <Success>true</Success>
  </Response>
</ApiResultOfMasterWorkflowSaveResult289WtATZ>