Setting the Retry Policy of an Outbound Campaign
Prerequisites
- You have applied for a developer account.
- For intelligent outbound calls, the customer needs to develop the IVR. For details, see Configuring an Intelligent Robot.
Scenario
This interface is invoked to set the retry policy of a specified outbound campaign.
Method
This interface supports only the POST method.
URL
https://ip:port/rest/isales/v1/openapi/campaigns/{vdnId}/retryPolicy/{campaignId}
In the URL, ip indicates the IP address of the CC-iSales server, and port indicates the HTTPS port number of the CC-iSales server.
|
No. |
Parameter |
Value Type |
Mandatory or Not |
Description |
|---|---|---|---|---|
|
1 |
vdnId |
Integer |
Yes |
ID of a VCC. The value is an integer ranging from 1 to 9999. |
|
2 |
campaignId |
Integer |
Yes |
ID of an outbound campaign. |
Request Description
|
No. |
Parameter |
Value Type |
Mandatory or Not |
Description |
|---|---|---|---|---|
|
1 |
Content-Type |
String |
Yes |
The value is fixed to application/json; charset=UTF-8. |
|
2 |
Authorization |
String |
Yes |
For details about the generation mode, see C2 Monitoring, System Outbound Call, CDR, and Knowledge Base Interface Authentication. |
|
3 |
locale |
String |
No |
i18n (internationalization, Language International Code), for example, zh_CN indicates Chinese and en_US indicates English. The default value is zh_CN. |
|
No. |
Parameter |
Value Type |
Description |
|---|---|---|---|
|
1 |
policyJson |
String |
JSON string of the policy. For details about the parameters of this object, see Table 4. |
|
2 |
policyType |
Integer |
Retry policy type.
|
|
No. |
Parameter |
Value Type |
Mandatory or Not |
Description |
|---|---|---|---|---|
|
1.1 |
dataType |
String |
- |
Number type. |
|
1.2 |
policy |
String |
- |
JSON string of the policy that is matched based on the result. For details about the parameters of this object, see Table 5. |
|
1.3 |
type |
Integer |
- |
Retry logic policy type.
|
|
1.4 |
noRetryPolicy |
List <String> |
No (This parameter cannot be set when policyType is set to 1.) |
Result codes for which no retry policy is configured. The result codes come from the resultCode field in the data attribute of the interface for querying the definitions of outbound call results. |
|
No. |
Parameter |
Value Type |
Mandatory or Not |
Description |
|---|---|---|---|---|
|
1.2.1 |
retryTime |
Integer |
- |
Number of call attempt days in a common policy. |
|
1.2.2 |
retryDay |
Integer |
- |
Number of call attempts per day in a common policy. |
|
No. |
Parameter |
Value Type |
Mandatory or Not |
Description |
|---|---|---|---|---|
|
1.2.1 |
callInterval |
Integer |
- |
Delay time. |
|
1.2.2 |
result |
Integer |
- |
Result type. |
|
1.2.3 |
retryNumber |
Integer |
- |
Number of retry times. |
Response Description
|
No. |
Parameter |
Value Type |
Description |
|---|---|---|---|
|
1 |
resultCode |
String |
Error code. The value 0200000 indicates success, and other values indicate failure. For details, see Table 8. |
|
2 |
resultDesc |
String |
Description. |
|
3 |
returnCode |
String |
Error code. The value 0200000 indicates success, and other values indicate failure. For details, see Table 8. |
|
4 |
returnDesc |
String |
Description. |
Triggered Event
None
Error Codes
|
No. |
Error Code |
Description |
|---|---|---|
|
1 |
0200001 |
Parameter error. For details about the error, see resultDesc. |
|
2 |
0200-01 |
The outbound campaign does not exist. |
|
3 |
02000001 |
Empty parameter. |
|
4 |
02000002 |
The parameter contains invalid characters. |
|
5 |
02000003 |
The parameter length cannot exceed the maximum length. |
|
6 |
02000004 |
The parameter length cannot be less than the minimum length. |
|
7 |
02000005 |
The parameter length must be within the specified range. |
|
8 |
02000006 |
Incorrect parameter type. |
|
9 |
02000007 |
Incorrect parameter value. |
|
10 |
02000008 |
Parameter conversion error. Check the request parameters. |
|
11 |
02000009 |
Incorrect parameter combination. Check the request parameters. |
|
12 |
02000010 |
The hour and minute parameters must be set at the same time. |
|
13 |
02000011 |
The number of parameters cannot exceed the specified number. |
Example
- The following provides examples of the request body of this interface:
You can select different policy combinations based on business requirements.
- Global policy+normal policy (policyType=0; type=0)
{ "policyJson":"[{'type':0,'retryTimes':1,'retryDay':1}]", "policyType": 0 } - Global policy+result policy (policyType=0; type=1)
{ "policyJson":"[{'type':1,'policy':[{'result':4,'retryNumber':3,'callInterval':60}]}]", "policyType": 0 } - Number type matching policy+common policy (policyType=1; type=0)
{ "policyJson" : "[{'dataType':'ST','type':0,''policy':{'retryTimes':2,'retryDay':1}}]", "policyType": 1 } - Number type matching policy+result policy (policyType=1; type=1)
{ "policyJson":"[{'dataType':'ST','type':1,'policy':[{'result':4,'retryNumber':3,'callInterval':60}]}]", "policyType": 1 }
- Global policy+normal policy (policyType=0; type=0)
- The following provides an example of the response body of this interface:
{ "resultCode": "0200000", "resultDesc": "", "returnCode": "0200000", "returnDesc": "" }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot