POST api/wf-designer/wf/create

Request Information

URI Parameters

None.

Body Parameters

DTOSYSWF
NameDescriptionTypeAdditional information
WFID

integer

None.

TenantID

integer

None.

ParentID

integer

None.

VersionNo

integer

None.

ProcessTitlePattern

string

None.

WFTitle

string

None.

WFCategoryID

integer

None.

Description

string

Data type: MultilineText

DateDueOverridable

boolean

None.

CreatedBy

integer

None.

NotifyOnCreate

boolean

None.

NotifyOnComplete

boolean

None.

PublishFlag

boolean

None.

DateCreated

date

None.

DateUpdated

date

None.

FlagDeleted

boolean

None.

NotifyOnStart

boolean

None.

StartNotificationID

integer

None.

OpenActivityNotificationID

integer

None.

CompleteActivityNotificationID

integer

None.

CreateNotificationID

integer

None.

CompleteNotificationID

integer

None.

AllowPublic

boolean

None.

EnableSMS

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "WFID": 1,
  "TenantID": 2,
  "ParentID": 3,
  "VersionNo": 4,
  "ProcessTitlePattern": "sample string 5",
  "WFTitle": "sample string 6",
  "WFCategoryID": 7,
  "Description": "sample string 8",
  "DateDueOverridable": true,
  "CreatedBy": 10,
  "NotifyOnCreate": true,
  "NotifyOnComplete": true,
  "PublishFlag": true,
  "DateCreated": "2025-10-26T11:15:05.5997929+08:00",
  "DateUpdated": "2025-10-26T11:15:05.5997929+08:00",
  "FlagDeleted": true,
  "NotifyOnStart": true,
  "StartNotificationID": 18,
  "OpenActivityNotificationID": 19,
  "CompleteActivityNotificationID": 20,
  "CreateNotificationID": 21,
  "CompleteNotificationID": 22,
  "AllowPublic": true,
  "EnableSMS": true
}

application/xml, text/xml

Sample:
<DTOSYSWF xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PTI.AF.DTO">
  <AllowPublic>true</AllowPublic>
  <CompleteActivityNotificationID>20</CompleteActivityNotificationID>
  <CompleteNotificationID>22</CompleteNotificationID>
  <CreateNotificationID>21</CreateNotificationID>
  <CreatedBy>10</CreatedBy>
  <DateCreated>2025-10-26T11:15:05.5997929+08:00</DateCreated>
  <DateDueOverridable>true</DateDueOverridable>
  <DateUpdated>2025-10-26T11:15:05.5997929+08:00</DateUpdated>
  <Description>sample string 8</Description>
  <EnableSMS>true</EnableSMS>
  <FlagDeleted>true</FlagDeleted>
  <NotifyOnComplete>true</NotifyOnComplete>
  <NotifyOnCreate>true</NotifyOnCreate>
  <NotifyOnStart>true</NotifyOnStart>
  <OpenActivityNotificationID>19</OpenActivityNotificationID>
  <ParentID>3</ParentID>
  <ProcessTitlePattern>sample string 5</ProcessTitlePattern>
  <PublishFlag>true</PublishFlag>
  <StartNotificationID>18</StartNotificationID>
  <TenantID>2</TenantID>
  <VersionNo>4</VersionNo>
  <WFCategoryID>7</WFCategoryID>
  <WFID>1</WFID>
  <WFTitle>sample string 6</WFTitle>
</DTOSYSWF>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'DTOSYSWF'.

Response Information

Resource Description

DTOSYSWF
NameDescriptionTypeAdditional information
WFID

integer

None.

TenantID

integer

None.

ParentID

integer

None.

VersionNo

integer

None.

ProcessTitlePattern

string

None.

WFTitle

string

None.

WFCategoryID

integer

None.

Description

string

Data type: MultilineText

DateDueOverridable

boolean

None.

CreatedBy

integer

None.

NotifyOnCreate

boolean

None.

NotifyOnComplete

boolean

None.

PublishFlag

boolean

None.

DateCreated

date

None.

DateUpdated

date

None.

FlagDeleted

boolean

None.

NotifyOnStart

boolean

None.

StartNotificationID

integer

None.

OpenActivityNotificationID

integer

None.

CompleteActivityNotificationID

integer

None.

CreateNotificationID

integer

None.

CompleteNotificationID

integer

None.

AllowPublic

boolean

None.

EnableSMS

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "WFID": 1,
  "TenantID": 2,
  "ParentID": 3,
  "VersionNo": 4,
  "ProcessTitlePattern": "sample string 5",
  "WFTitle": "sample string 6",
  "WFCategoryID": 7,
  "Description": "sample string 8",
  "DateDueOverridable": true,
  "CreatedBy": 10,
  "NotifyOnCreate": true,
  "NotifyOnComplete": true,
  "PublishFlag": true,
  "DateCreated": "2025-10-26T11:15:05.5997929+08:00",
  "DateUpdated": "2025-10-26T11:15:05.5997929+08:00",
  "FlagDeleted": true,
  "NotifyOnStart": true,
  "StartNotificationID": 18,
  "OpenActivityNotificationID": 19,
  "CompleteActivityNotificationID": 20,
  "CreateNotificationID": 21,
  "CompleteNotificationID": 22,
  "AllowPublic": true,
  "EnableSMS": true
}

application/xml, text/xml

Sample:
<DTOSYSWF xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PTI.AF.DTO">
  <AllowPublic>true</AllowPublic>
  <CompleteActivityNotificationID>20</CompleteActivityNotificationID>
  <CompleteNotificationID>22</CompleteNotificationID>
  <CreateNotificationID>21</CreateNotificationID>
  <CreatedBy>10</CreatedBy>
  <DateCreated>2025-10-26T11:15:05.5997929+08:00</DateCreated>
  <DateDueOverridable>true</DateDueOverridable>
  <DateUpdated>2025-10-26T11:15:05.5997929+08:00</DateUpdated>
  <Description>sample string 8</Description>
  <EnableSMS>true</EnableSMS>
  <FlagDeleted>true</FlagDeleted>
  <NotifyOnComplete>true</NotifyOnComplete>
  <NotifyOnCreate>true</NotifyOnCreate>
  <NotifyOnStart>true</NotifyOnStart>
  <OpenActivityNotificationID>19</OpenActivityNotificationID>
  <ParentID>3</ParentID>
  <ProcessTitlePattern>sample string 5</ProcessTitlePattern>
  <PublishFlag>true</PublishFlag>
  <StartNotificationID>18</StartNotificationID>
  <TenantID>2</TenantID>
  <VersionNo>4</VersionNo>
  <WFCategoryID>7</WFCategoryID>
  <WFID>1</WFID>
  <WFTitle>sample string 6</WFTitle>
</DTOSYSWF>