Download PDF
Download page Dialing Strategies API Methods.
Dialing Strategies API Methods
Dialing Strategies are the rules that define the inclusion of numbers for an account, sequence of dialing, whether to move to the next number in the sequence, and requeue inclusion.
Currently the Configuration API supports List, Create, Update, and Delete methods for Dialing Strategies objects.
In order to use the methods listed that perform operations on Dialing Strategies resources, the user of the API must belong to either the Sysadmin, Superuser, Manager, or IT User role. If the user belongs to the Manager role, they must also have the "Dialing Strategies" optional power configured.
Create Dialing Strategy
Description: Creates a new Dialing Strategy.
User Roles: Sysadmin, Superuser, or Manager
Method: POST /configuration/dialingStrategies
Body:
| Key | Type | Mandatory? | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
displayName | String | Yes | Name of the Dialing Strategy to be created. | ||||||||||||||||||||||||
| serviceIds | Array | No | An array of one or more Service IDs that will be assigned to the Dialing Strategy. Although a Dialing Strategy is assigned to a Service this does not make it the Services' default Dialing Strategy, it only allows the Service to use the Dialing Strategy. | ||||||||||||||||||||||||
| callCenterIds | Array | No | An array of one or more CallCenter IDs that will be assigned to the Dialing Strategy. | ||||||||||||||||||||||||
| dialingSequenceItem | Array | Yes | An array of one or more phone positions to assign to the Dialing Strategy. Phone positions should be listed in the order you want them dialed from top to bottom. | ||||||||||||||||||||||||
| outcomeItem | Array | No | An array of zero or more results that will be assigned to the Dialing Strategy.
|
Response Code: 201 Created
Body:
| Key or Attribute | Type | Mandatory? | Description |
|---|---|---|---|
| id | Integer (ID) | Yes | The ID of the newly created Dialing Strategy. |
Create a new Dialing Strategy
#Request (JSON)
POST /configuration/dialingStrategies HTTP/1.1
Host: localhost.com
Content-Type: application/json
Accept: application/json
{
"serviceIds": [272646],
"callCenterIds":[120019],
"dialingSequenceItem": [1],
"outcomeItem": [
{
"lvResultId": 476,
"dialAnotherNumber": true,
"maxNumberOfRetries": 2,
"retryDelay": 5,
"requeue": true
}
],
"displayName": "QA1_API_Team11765178618752"
}
#Response
201 Created
Content-Type: application/json
{"id": 231796}
Delete All Dialing Strategy Outcomes
Description: Removes all outcomes from a Dialing Strategy.
User Roles: Sysadmin, Superuser, or Manager
Method: DELETE /configuration/dialingStrategies/{id}/outcomes
Parameters:
| Path/Query Parameter Name | Variable Name | Type | Mandatory? | Description |
|---|---|---|---|---|
| id | strategyId | Integer (ID) | Yes | The ID of the Dialing Strategy to be updated. |
Body:
None
Response Code: 204 No Content
Body:
None
Remove all outcomes from an existing Dialing Strategy
#Request (JSON)
DELETE /configuration/dialingStrategies/30953/outcomes
Host: localhost.com
Content-Type: application/json
Accept: application/json
#Response
204 No Content
Delete Dialing Strategy
Description: Deletes a Dialing Strategy.
User Roles: Sysadmin, Superuser, or Manager
Parameters:
| Path/Query Parameter Name | Variable Name | Type | Mandatory? | Description |
|---|---|---|---|---|
| id | strategyId | Integer (ID) | True | ID of the Dialing Strategy you want to delete |
Body:
None
Response Code: 204 No Content
Body:
None
Delete an existing Dialing Strategy
#Request
DELETE /configuration/dialingStrategies/30740
Host: localhost.com
Content-Type: application/json
Accept: application/json
#Response
204 No Content
List Dialing Strategies
Description: Lists Dialing Strategies configured for a Client and what Services those Strategies are associated to.
User Roles: Sysadmin, Superuser, or Manager
Method: GET /configuration/dialingStrategies
Parameters:
None
Body:
None
Response Code: 200 OK
Body:
| Key | Type | Mandatory? | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | Number | No | ID of the Dialing Strategy | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name | String | Yes | Name of the Dialing Strategy | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| outcomeItem | List | No |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| dialingSequenceItem | List | No | A list of one or more phone positions to assign to the Dialing Strategy. Phone positions should be listed in the order you want them dialed from top to bottom. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| service | List | No | A list of one or more Service IDs that is assigned to the Dialing Strategy.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| callCenters | List | No | A list of one or more Call Center IDs that is assigned to the Dialing Strategy.
|
List of Dialing Strategies configured for a Client
#Request (JSON)
GET /configuration/dialingStrategies
Host: localhost.com
Content-Type: application/json
Accept: application/json
#Response (JSON)
200 OK
Content-Type: application/json
[
{
"id": 230507,
"name": "Apps_DSI_Test_2"
},
{
"id": 226277,
"name": "CCi_Test"
},
{
"id": 226278,
"name": "Campaign_Template_Auto"
},
.
.
.
{
"id": 226306,
"name": "wireless-All"
}
]
Update Dialing Strategy
Description: Updates the name and/or dialing sequence of a Dialing Strategy.
User Roles: Sysadmin, Superuser, or Manager
Method: POST /configuration/dialingStrategies/{id}
Parameters:
| Path/Query Parameter Name | Variable Name | Type | Mandatory? | Description |
|---|---|---|---|---|
| id | strategyId | Integer (ID) | Yes | ID of the Dialing Strategy to be updated. |
Body(JSON):
| Key | Type | Mandatory? | Description | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | Number | No | ID of the Dialing Strategy | ||||||||||||||||||||||||||||
| displayName | String | Yes | New name of the Dialing Strategy. | ||||||||||||||||||||||||||||
| outcomeItem | List | No |
| ||||||||||||||||||||||||||||
| dialingSequenceItem | List | Yes | A list of one or more phone positions to assign to the Dialing Strategy. Phone positions should be listed in the order you want them dialed from top to bottom. | ||||||||||||||||||||||||||||
| serviceIds | List | No | A list of one or more Service IDs that is assigned to the Dialing Strategy. | ||||||||||||||||||||||||||||
| callCenterIds | List | No | A list of one or more Call Center IDs that is assigned to the Dialing Strategy. |
Response Code: 204 No Content
Body:
None
Update a Dialing Strategy name and/or dialing sequence
#Request (JSON)
POST /configuration/dialingStrategies/231796
Host: localhost.com
Content-Type: application/json
Accept: application/json
{
"dialingSequenceItem": [2],
"displayName": "QATest111765178618752",
"serviceIds": [272646],
"callCenterIds":[120019],
"outcomeItem": [
{
"lvResultId": 476,
"dialAnotherNumber": true,
"maxNumberOfRetries": 2,
"retryDelay": 5,
"requeue": true
}
]
}
#Response
204 No Content