ImportDoNotCallNumbers
Imports one or more do-not-call numbers to a specified instance. The import methods include manual entry and file upload.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
ccc-test |
| NumberList |
string |
No |
The list of do-not-call numbers, in the format of a JSON array character string, where each array element is a do-not-call number. |
["1900000****","1312121****"] |
| Remark |
string |
No |
The remarks for the do-not-call numbers. |
Test |
| FilePath |
string |
No |
The key of the Object Storage Service (OSS) file. You can obtain the key from the response of the GetDoNotCallFileUploadParameters operation. This parameter is required only when you import numbers by uploading a file. |
temp/blacklist/import/15772471154xxxx/ccc-test/20220315100340/blacklist.xlsx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The response code. |
OK |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Message |
string |
The response message. |
None |
| RequestId |
string |
The request ID. |
BA03159C-E808-4FF1-B27E-A61B6E888D7F |
| Params |
array |
The list of error parameters. |
["ParameterName"] |
|
string |
The response parameter. |
None |
Examples
Success response
JSON format
{
"Code": "OK",
"HttpStatusCode": 200,
"Message": "无",
"RequestId": "BA03159C-E808-4FF1-B27E-A61B6E888D7F",
"Params": [
"无"
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Parameter.Blank | The parameter %s must not be null or empty. | The parameter cannot be null or a string that contains whitespace characters. |
| 400 | Parameter.Enumeration | The parameter %s must be one of the value of enumeration %s. | The parameter must be one of the enumeration values defined by the system. |
| 400 | Parameter.Empty | The parameter %s may not be null or empty. | The parameter cannot be null or an empty string. |
| 404 | NotExists.InstanceId | The specified instance %s does not exist. | The specified call center instance does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.