POST api/WorkflowDefinitions

Creates a workflow definition.

Request Information

URI Parameters

None.

Body Parameters

The workflow definition model to create with.

WorkflowDefinitionDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

CreationDate

date

None.

DeletedDate

date

None.

Description

string

None.

Name

string

Required

String length: inclusive between 0 and 250

PublishDate

date

None.

TenantId

globally unique identifier

None.

WorkflowDefinitionCode

globally unique identifier

None.

Version

string

String length: inclusive between 0 and 50

WfdPath

string

String length: inclusive between 0 and 500

XsdPath

string

String length: inclusive between 0 and 500

InputModuleName

string

String length: inclusive between 0 and 50

OutputModuleName

string

String length: inclusive between 0 and 50

CommandParameters

string

String length: inclusive between 0 and 500

XsdFileData

Collection of byte

None.

WfdFileData

Collection of byte

None.

Fonts

Collection of FontDto

None.

SchemaId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "dadfdde8-e5a1-440f-9831-8b31e3a78eae",
  "CreationDate": "2025-12-11T17:26:43.6607098Z",
  "DeletedDate": "2025-12-11T17:26:43.6607098Z",
  "Description": "sample string 3",
  "Name": "sample string 4",
  "PublishDate": "2025-12-11T17:26:43.6607098Z",
  "TenantId": "76e5029d-db34-4fcd-94d6-f1c83798be14",
  "WorkflowDefinitionCode": "a3509c4d-ab90-40a7-96fa-49dca1d6b36c",
  "Version": "sample string 7",
  "WfdPath": "sample string 8",
  "XsdPath": "sample string 9",
  "InputModuleName": "sample string 10",
  "OutputModuleName": "sample string 11",
  "CommandParameters": "sample string 12",
  "XsdFileData": "QEA=",
  "WfdFileData": "QEA=",
  "Fonts": [
    {
      "Id": "2777e228-dfa2-4056-ade9-8e1fbce34ce8",
      "Name": "sample string 2",
      "CreationDate": "2025-12-11T17:26:43.6607098Z"
    },
    {
      "Id": "2777e228-dfa2-4056-ade9-8e1fbce34ce8",
      "Name": "sample string 2",
      "CreationDate": "2025-12-11T17:26:43.6607098Z"
    }
  ],
  "SchemaId": "e338bdbd-c8c8-4111-a646-c72fca49ff8b"
}

application/xml, text/xml

Sample:
<WorkflowDefinitionDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Template.Models">
  <CommandParameters>sample string 12</CommandParameters>
  <CreationDate>2025-12-11T17:26:43.6607098+00:00</CreationDate>
  <DeletedDate>2025-12-11T17:26:43.6607098+00:00</DeletedDate>
  <Description>sample string 3</Description>
  <Fonts>
    <FontDto>
      <CreationDate>2025-12-11T17:26:43.6607098+00:00</CreationDate>
      <Id>2777e228-dfa2-4056-ade9-8e1fbce34ce8</Id>
      <Name>sample string 2</Name>
    </FontDto>
    <FontDto>
      <CreationDate>2025-12-11T17:26:43.6607098+00:00</CreationDate>
      <Id>2777e228-dfa2-4056-ade9-8e1fbce34ce8</Id>
      <Name>sample string 2</Name>
    </FontDto>
  </Fonts>
  <Id>dadfdde8-e5a1-440f-9831-8b31e3a78eae</Id>
  <InputModuleName>sample string 10</InputModuleName>
  <Name>sample string 4</Name>
  <OutputModuleName>sample string 11</OutputModuleName>
  <PublishDate>2025-12-11T17:26:43.6607098+00:00</PublishDate>
  <SchemaId>e338bdbd-c8c8-4111-a646-c72fca49ff8b</SchemaId>
  <TenantId>76e5029d-db34-4fcd-94d6-f1c83798be14</TenantId>
  <Version>sample string 7</Version>
  <WfdFileData>QEA=</WfdFileData>
  <WfdPath>sample string 8</WfdPath>
  <WorkflowDefinitionCode>a3509c4d-ab90-40a7-96fa-49dca1d6b36c</WorkflowDefinitionCode>
  <XsdFileData>QEA=</XsdFileData>
  <XsdPath>sample string 9</XsdPath>
</WorkflowDefinitionDto>

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 'WorkflowDefinitionDto'.

Response Information

Resource Description

globally unique identifier

Response Formats

application/json, text/json

Sample:
"60b11aba-39c7-4f97-afaa-ec270934f0af"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">60b11aba-39c7-4f97-afaa-ec270934f0af</guid>