POST api/workflow/create
Request Information
URI Parameters
None.
Body Parameters
WorkflowCreateDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| ProjectId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Token | string |
None. |
|
| Workflow | string |
None. |
|
| IsPublish | boolean |
None. |
|
| IsImported | boolean |
None. |
|
| ProjectType | integer |
None. |
|
| Roles | Collection of integer |
None. |
|
| IsValid | boolean |
None. |
|
| HasNewVersion | boolean |
None. |
|
| DependentID | globally unique identifier |
None. |
|
| DependentName | string |
None. |
|
| Assistants | Collection of AssistantDTO |
None. |
|
| AssistantFileMap | Dictionary of string [key] and Collection of string [value] |
None. |
Request Formats
application/json, text/json
Sample:
{
"ProjectId": "c53b5a64-68da-4291-a5d2-e1f9cd7f0ae1",
"Name": "sample string 2",
"Token": "sample string 3",
"Workflow": "sample string 4",
"IsPublish": true,
"IsImported": true,
"ProjectType": 7,
"Roles": [
1,
2
],
"IsValid": true,
"HasNewVersion": true,
"DependentID": "3083aad0-b5f6-47fa-9ad5-615699144fb5",
"DependentName": "sample string 10",
"Assistants": [
{
"Id": "6102d401-4fec-4830-a4bf-08f31a37fbb5",
"Name": "sample string 2",
"Token": "sample string 3",
"Model": "sample string 4",
"Instructions": "sample string 5",
"MaxTokens": 6,
"Temperature": 7.1,
"TopP": 8.1,
"AssistantId": "sample string 9",
"VectorStoreId": "sample string 10",
"Fingerprint": "sample string 11"
},
{
"Id": "6102d401-4fec-4830-a4bf-08f31a37fbb5",
"Name": "sample string 2",
"Token": "sample string 3",
"Model": "sample string 4",
"Instructions": "sample string 5",
"MaxTokens": 6,
"Temperature": 7.1,
"TopP": 8.1,
"AssistantId": "sample string 9",
"VectorStoreId": "sample string 10",
"Fingerprint": "sample string 11"
}
],
"AssistantFileMap": {
"sample string 1": [
"sample string 1",
"sample string 2"
],
"sample string 2": [
"sample string 1",
"sample string 2"
]
}
}
application/xml, text/xml
Sample:
<WorkflowCreateDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AIProject.API.Models.DTO">
<AssistantFileMap xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
<d2p1:Key>sample string 1</d2p1:Key>
<d2p1:Value>
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</d2p1:Value>
</d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
<d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
<d2p1:Key>sample string 2</d2p1:Key>
<d2p1:Value>
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</d2p1:Value>
</d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
</AssistantFileMap>
<Assistants>
<AssistantDTO>
<AssistantId>sample string 9</AssistantId>
<Fingerprint>sample string 11</Fingerprint>
<Id>6102d401-4fec-4830-a4bf-08f31a37fbb5</Id>
<Instructions>sample string 5</Instructions>
<MaxTokens>6</MaxTokens>
<Model>sample string 4</Model>
<Name>sample string 2</Name>
<Temperature>7.1</Temperature>
<Token>sample string 3</Token>
<TopP>8.1</TopP>
<VectorStoreId>sample string 10</VectorStoreId>
</AssistantDTO>
<AssistantDTO>
<AssistantId>sample string 9</AssistantId>
<Fingerprint>sample string 11</Fingerprint>
<Id>6102d401-4fec-4830-a4bf-08f31a37fbb5</Id>
<Instructions>sample string 5</Instructions>
<MaxTokens>6</MaxTokens>
<Model>sample string 4</Model>
<Name>sample string 2</Name>
<Temperature>7.1</Temperature>
<Token>sample string 3</Token>
<TopP>8.1</TopP>
<VectorStoreId>sample string 10</VectorStoreId>
</AssistantDTO>
</Assistants>
<DependentID>3083aad0-b5f6-47fa-9ad5-615699144fb5</DependentID>
<DependentName>sample string 10</DependentName>
<HasNewVersion>true</HasNewVersion>
<IsImported>true</IsImported>
<IsPublish>true</IsPublish>
<IsValid>true</IsValid>
<Name>sample string 2</Name>
<ProjectId>c53b5a64-68da-4291-a5d2-e1f9cd7f0ae1</ProjectId>
<ProjectType>7</ProjectType>
<Roles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</Roles>
<Token>sample string 3</Token>
<Workflow>sample string 4</Workflow>
</WorkflowCreateDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.