POST api/Intent/SaveBotIntentV2
Request Information
URI Parameters
None.
Body Parameters
SaveIntentParams| Name | Description | Type | Additional information |
|---|---|---|---|
| clientId | string |
None. |
|
| intentId | integer |
None. |
|
| name | string |
None. |
|
| subDomain | integer |
None. |
|
| patterns | Collection of string |
None. |
|
| responseType | string |
None. |
|
| response | Collection of botResponse |
None. |
|
| workflowId | integer |
None. |
|
| channels | Collection of channel |
None. |
|
| actions | Collection of botAction |
None. |
|
| enabled | boolean |
None. |
|
| activeHours | string |
None. |
|
| searchGroups | Collection of string |
None. |
|
| agentId | integer |
None. |
|
| agentName | string |
None. |
|
| workflowDependancy | boolean |
None. |
|
| workflowTriggers | Collection of WorkflowTrigger |
None. |
Request Formats
application/json, text/json
Sample:
{
"clientId": "sample string 1",
"intentId": 2,
"name": "sample string 3",
"subDomain": 4,
"patterns": [
"sample string 1",
"sample string 2"
],
"responseType": "sample string 5",
"response": [
{
"id": 1,
"newTab": true,
"text": "sample string 3",
"responseType": "sample string 4",
"tooltip": "sample string 5"
},
{
"id": 1,
"newTab": true,
"text": "sample string 3",
"responseType": "sample string 4",
"tooltip": "sample string 5"
}
],
"workflowId": 6,
"channels": [
{
"index": 1,
"id": "sample string 2",
"name": "sample string 3"
},
{
"index": 1,
"id": "sample string 2",
"name": "sample string 3"
}
],
"actions": [
{
"id": 1,
"name": "sample string 2",
"caption": "sample string 3",
"action": "sample string 4"
},
{
"id": 1,
"name": "sample string 2",
"caption": "sample string 3",
"action": "sample string 4"
}
],
"enabled": true,
"activeHours": "sample string 8",
"searchGroups": [
"sample string 1",
"sample string 2"
],
"agentId": 9,
"agentName": "sample string 10",
"workflowDependancy": true,
"workflowTriggers": [
{
"workflow": 1,
"question": 2,
"branch": 3,
"isCustom": true,
"button": 5
},
{
"workflow": 1,
"question": 2,
"branch": 3,
"isCustom": true,
"button": 5
}
]
}
application/xml, text/xml
Sample:
<jsonObj.SaveIntentParams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bizbot">
<actions>
<jsonObj.botAction>
<action>sample string 4</action>
<caption>sample string 3</caption>
<id>1</id>
<name>sample string 2</name>
</jsonObj.botAction>
<jsonObj.botAction>
<action>sample string 4</action>
<caption>sample string 3</caption>
<id>1</id>
<name>sample string 2</name>
</jsonObj.botAction>
</actions>
<activeHours>sample string 8</activeHours>
<agentId>9</agentId>
<agentName>sample string 10</agentName>
<channels>
<jsonObj.channel>
<id>sample string 2</id>
<index>1</index>
<name>sample string 3</name>
</jsonObj.channel>
<jsonObj.channel>
<id>sample string 2</id>
<index>1</index>
<name>sample string 3</name>
</jsonObj.channel>
</channels>
<clientId>sample string 1</clientId>
<enabled>true</enabled>
<intentId>2</intentId>
<name>sample string 3</name>
<patterns xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</patterns>
<response>
<jsonObj.botResponse>
<id>1</id>
<newTab>true</newTab>
<responseType>sample string 4</responseType>
<text>sample string 3</text>
<tooltip>sample string 5</tooltip>
</jsonObj.botResponse>
<jsonObj.botResponse>
<id>1</id>
<newTab>true</newTab>
<responseType>sample string 4</responseType>
<text>sample string 3</text>
<tooltip>sample string 5</tooltip>
</jsonObj.botResponse>
</response>
<responseType>sample string 5</responseType>
<searchGroups xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</searchGroups>
<subDomain>4</subDomain>
<workflowDependancy>true</workflowDependancy>
<workflowId>6</workflowId>
<workflowTriggers>
<jsonObj.WorkflowTrigger>
<branch>3</branch>
<button>5</button>
<isCustom>true</isCustom>
<question>2</question>
<workflow>1</workflow>
</jsonObj.WorkflowTrigger>
<jsonObj.WorkflowTrigger>
<branch>3</branch>
<button>5</button>
<isCustom>true</isCustom>
<question>2</question>
<workflow>1</workflow>
</jsonObj.WorkflowTrigger>
</workflowTriggers>
</jsonObj.SaveIntentParams>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |