API - Strategy

Description
These APIs are used to perform CRUD operations on the Strategy.
Get All Strategies for Interactive Channel
GET /Campaign/api/interact/rest/v2/channels/{icIdOrName}/strategies?page=0&size=50
Parameters
Parameters Default Values
page 0
size 50
Output
Table 1. Response Codes
Success 200 Ok
Error 400 Inputs provided for the API are not valid.
Server Error 500 Internal Server Error. For more details, check the logs.
Example: Content-Type: application/json
{

"content": [

{
  "campaignCode": "string",
  "campaignId": 0,
  "campaignName": "string",
  "createBy": "string",
  "createDate": 0,
  "deleteLock": 0,
  "description": "string",
  "editLock": 0,
  "id": 0,
  "interactiveChannelId": 0,
  "interactiveChannelName": "string",
  "lastProdDepTime": 0,
  "name": "string",
  "ruleCount": 0,
  "runEnable": 0,
  "updateBy": "string",
  "updateDate": 0

}
 
],

"page": {

"pageNumber": 0,

"totalElements": 0,

"totalPages": 0,

"size": 0,

"hasNext": false,

"hasPrev": false

}

}

Get Strategy by Strategy Id
GET /Campaign/api/interact/rest/v2/channels/{icIdOrName}/strategies/{strategyIdOrName}
Parameters
Parameters Default Values
page 0
size 50
Output
Table 2. Response Codes
Success 200 Ok
Error 400 Inputs provided for the API are not valid.
Server Error 500 Internal Server Error. For more details, check the logs.
Example: Content-Type: application/json
{
  "campaignCode": "string",
  "campaignId": 0,
  "campaignName": "string",
  "createBy": "string",
  "createDate": 0,
  "deleteLock": 0,
  "description": "string",
  "editLock": 0,
  "id": 0,
  "interactiveChannelId": 0,
  "interactiveChannelName": "string",
  "lastProdDepTime": 0,
  "name": "string",
  "ruleCount": 0,
  "runEnable": 0,
  "updateBy": "string",
  "updateDate": 0

}


Create Strategy
POST /Campaign/api/interact/rest/v2/channels/{icIdOrName}/strategies
Input
Body Parameter – Content-Type:application/json
{
  "campaignCode": "string",
  "campaignId": 0,
  "campaignName": "string",
  "createBy": "string",
  "createDate": 0,
  "deleteLock": 0,
  "description": "string",
  "editLock": 0,
  "id": 0,
  "interactiveChannelId": 0,
  "interactiveChannelName": "string",
  "lastProdDepTime": 0,
  "name": "string",
  "ruleCount": 0,
  "runEnable": 0,
  "updateBy": "string",
  "updateDate": 0
}
Output
Table 3. Response Codes
Success 201 Created
Error 400 Bad Request
Server Error 500 Internal /Server Error.
Example: Content-Type: application/json
{
  "campaignCode": "string",
  "campaignId": 0,
  "campaignName": "string",
  "createBy": "string",
  "createDate": 0,
  "deleteLock": 0,
  "description": "string",
  "editLock": 0,
  "id": 0,
  "interactiveChannelId": 0,
  "interactiveChannelName": "string",
  "lastProdDepTime": 0,
  "name": "string",
  "ruleCount": 0,
  "runEnable": 0,
  "updateBy": "string",
  "updateDate": 0

}
Update
PUT /Campaign/api/interact/rest/v2/channels/{icIdOrName}/strategies/{strategyIdOrName}
Input
Body Parameter – Content-Type:application/json
{
  				"campaignCode": "string",
  				"campaignId": 0,
  				"campaignName": "string",
  				"createBy": "string",
  				"createDate": 0,
  				"deleteLock": 0,
  				"description": "string",
  				"editLock": 0,
  				"id": 0,
  				"interactiveChannelId": 0,
  				"interactiveChannelName": "string",
  				"lastProdDepTime": 0,
  				"name": "string",
  				"ruleCount": 0,
  				"runEnable": 0,
  				"updateBy": "string",
  				"updateDate": 0

}
Output
Table 4. Response Codes
Success 202 Accepted
Error 400 Bad Request
Server Error 500 Internal /Server Error.
{
  "campaignCode": "string",
  "campaignId": 0,
  "campaignName": "string",
  "createBy": "string",
  "createDate": 0,
  "deleteLock": 0,
  "description": "string",
  "editLock": 0,
  "id": 0,
  "interactiveChannelId": 0,
  "interactiveChannelName": "string",
  "lastProdDepTime": 0,
  "name": "string",
  "ruleCount": 0,
  "runEnable": 0,
  "updateBy": "string",
  "updateDate": 0

}
Delete
DELETE /Campaign/api/interact/rest/v2/channels/{icIdOrName}/strategies/{strategyIdOrName}
Output
Table 5. Response Codes
Success 204 No Content
Error 400 Bad Request
Server Error 500 Internal /Server Error.
Copy Strategy
POST /Campaign/api/interact/rest/v2/channels/{icIdOrName}/strategies/{strategyIdOrName}
Input
Body Parameter – Content-Type:application/json
{			"campaignCode": "string",
  				"campaignId": 0,
  				"campaignName": "string",
  				"createBy": "string",
  				"createDate": 0,
  				"deleteLock": 0,
  				"description": "string",
  				"editLock": 0,
  				"id": 0,
  				"interactiveChannelId": 0,
  				"interactiveChannelName": "string",
  				"lastProdDepTime": 0,
  				"name": "string",
  				"ruleCount": 0,
  				"runEnable": 0,
  				"updateBy": "string",
  				"updateDate": 0
}
Output
Table 6. Response Codes
Success 202 Accepted
Error 400 Bad Request
Server Error 500 Internal /Server Error.
{
  "campaignCode": "string",
  "campaignId": 0,
  "campaignName": "string",
  "createBy": "string",
  "createDate": 0,
  "deleteLock": 0,
  "description": "string",
  "editLock": 0,
  "id": 0,
  "interactiveChannelId": 0,
  "interactiveChannelName": "string",
  "lastProdDepTime": 0,
  "name": "string",
  "ruleCount": 0,
  "runEnable": 0,
  "updateBy": "string",
  "updateDate": 0

}