Dynamic Campaign is represented as simple flat JSON objects with the following keys:
Name | Type | Description |
---|---|---|
defaultCampaignId |
guid | Id of the default campaign. |
dynamicCode |
string | The code of this campaign. |
dynamicCampaignRules |
dynamicCampaignRules[] | Reference to Dynamic Campaign Rule. |
Rule Condition JSON Format:
Name | Type | Description | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
guid | Id of the rule condition. | ||||||||||||||||||||||||||||||||||
dynamicCampaignRuleId |
guid | Id of the dynamic campaign rule. | ||||||||||||||||||||||||||||||||||
operator |
string | Allowed values are "is", "contains", "notContains", "isMoreThan", "isLessThan", "isNot", "isNotLessThan", "isNotMoreThan", "regularExpression", "isOneOf", "isNotIn", "dateNotEqualTo", "before", "after", "dateEqualTo". | ||||||||||||||||||||||||||||||||||
value |
string | Value of the rule condition. | ||||||||||||||||||||||||||||||||||
order |
integer | Order of the rule condition. | ||||||||||||||||||||||||||||||||||
fieldName |
string |
Field name of the rule condition.
|
||||||||||||||||||||||||||||||||||
description |
string |
GET livechat/dynamicCampaignConfig
Name | Type | In | Required | Description |
---|---|---|---|---|
include |
string | query | no | Allowed value is "dynamicCampaignRule". |
Sample Request:
Response:
HTTP/1.1 200 OK
PUT livechat/dynamicCampaignConfig
Name | Type | In | Required | Description |
---|---|---|---|---|
defaultCampaignId |
guid | body | no | Id of the default campaign. |
dynamicCampaignRules |
dynamicCampaignRules[] | body | no | Reference to Dynamic Campaign Rule. |
Sample Request:
Response:
HTTP/1.1 200 OK
Dynamic Campaign Rule is represented as simple flat JSON objects with the following keys:
Name | Type | Description |
---|---|---|
id |
guid | Id of the dynamic campaign rule. |
name |
string | Name of the dynamic campaign rule. |
isEnabled |
bool | Whether the dynamic campaign rule is enabled or not. |
conditionMetType |
string | Allowed values are "all", "any", "logicalExpression". |
logicalExpression |
string | Logical expression of the dynamic campaign rule. |
targetCampaignId |
guid | Target campaign of the dynamic campaign rule. |
order |
integer | Order of the dynamic campaign rule. |
dynamicCampaignRuleConditions |
dynamicCampaignRuleConditions[] | Reference to Rule Condition. |
GET livechat/dynamicCampaignRules
Name | Type | In | Required | Description |
---|---|---|---|---|
include |
string | query | no | Allowed values are "dynamicCampaignRuleCondition", "targetCampaign". |
An array of Dynamic Campaign Rule
Sample Request:
Response:
HTTP/1.1 200 OK
GET livechat/dynamicCampaignRules/{id}
Name | Type | In | Required | Description |
---|---|---|---|---|
include |
string | query | no | Allowed values are "dynamicCampaignRuleCondition", "targetCampaign". |
Sample Request:
Response:
HTTP/1.1 200 OK
POST livechat/dynamicCampaignRules
Name | Type | In | Required | Description |
---|---|---|---|---|
name |
string | body | yes | Name of the dynamic campaign rule. |
isEnabled |
bool | body | no | Whether the dynamic campaign rule is enabled or not. |
conditionMetType |
string | body | yes | Allowed values are "all", "any", "logicalExpression". |
logicalExpression |
string | body | yes | Logical expression of the dynamic campaign rule. |
targetCampaignId |
guid | body | yes | Target campaign of the dynamic campaign rule. |
order |
integer | body | no | Order of the dynamic campaign rule. |
dynamicCampaignRuleConditions |
dynamicCampaignRuleConditions[] | body | no | Reference to Rule Condition. |
Sample Request:
Response:
HTTP/1.1 201 Created
POST livechat/dynamicCampaignRules/{id}:disable
Sample Request:
Response:
HTTP/1.1 200 OK
POST livechat/dynamicCampaignRules/{id}:enable
Sample Request:
Response:
HTTP/1.1 200 OK
PUT livechat/dynamicCampaignRules/{id}
Name | Type | In | Required | Description |
---|---|---|---|---|
name |
string | body | yes | Name of the dynamic campaign rule. |
isEnabled |
bool | body | no | Whether the dynamic campaign rule is enabled or not. |
conditionMetType |
string | body | yes | Allowed values are "all", "any", "logicalExpression". |
logicalExpression |
string | body | yes | Logical expression of the dynamic campaign rule. |
targetCampaignId |
guid | body | yes | Target campaign of the dynamic campaign rule. |
order |
integer | body | no | Order of the dynamic campaign rule. |
dynamicCampaignRuleConditions |
dynamicCampaignRuleConditions[] | body | no | Reference to Rule Condition. |
Sample Request:
Response:
HTTP/1.1 200 OK