AssignJobsAsync
Asynchronously creates outbound jobs.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
outboundbot:AssignJobsAsync |
create |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. |
12f3dd08-0c55-44ce-9b64-e69d35ed3a76 |
| JobGroupId |
string |
Yes |
The ID of the job group. |
d004cfd2-6a81-491c-83c6-cbe186620c95 |
| StrategyJson |
string |
No |
A JSON string that defines the job group execution strategy. This object has the following properties:
Specifies the repetition frequency. Valid values include
The start time of the execution strategy.
The end time of the execution strategy.
The time range during which outbound calls can be made.
The maximum number of daily call attempts for a single phone number.
The minimum interval between retry attempts, in minutes.
The routing strategy for calling numbers. Valid values:
The days on which the job repeats. If
Specifies whether to enable recurring jobs. Valid values: |
{"maxAttemptsPerDay":"3","minAttemptInterval":"10","routingStrategy":"LocalProvinceFirst","repeatDays":["1","2","3"],"workingTime":[{"beginTime":"10:00:00","endTime":"11:00:00"},{"beginTime":"14:00:00","endTime":"15:00:00"}],"repeatable":true,"endTime":1707494400000,"startTime":1706976000000,"repeatBy":"Week"} |
| CallingNumber |
array |
No |
The list of calling numbers to be displayed to callees. Note
If you omit this parameter, the system uses all available calling numbers by default. |
|
|
string |
No |
A calling number. |
4008013260 |
|
| JobsJson |
array |
Yes |
A JSON array containing job data. For the required format, see the example. Each JSON object in the array represents a job for a single contact. |
|
|
string |
Yes |
A JSON object representing a single job. This object contains the following properties:
|
{ "extras": [{ "value": "测试", "key": "测试" }, { "key": "ServiceId", "value": null }, { "key": "TenantId", "value": null }], "contacts": [{ "phoneNumber": "134*******", "name": "张三", "referenceId": "C01", "role": "客户1", "honorific": "老张" }] } |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. |
254EB995-DEDF-48A4-9101-9CA5B72FFBCC |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Success |
boolean |
Indicates whether the request was successful. |
true |
| Code |
string |
The API status code. |
OK |
| Message |
string |
The API response message. |
Success |
| AsyncTaskId |
string |
The asynchronous task ID. |
12f3dd08-0c55-44ce-9b64-e69d35ed3a76 |
Examples
Success response
JSON format
{
"RequestId": "254EB995-DEDF-48A4-9101-9CA5B72FFBCC",
"HttpStatusCode": 200,
"Success": true,
"Code": "OK",
"Message": "Success",
"AsyncTaskId": "12f3dd08-0c55-44ce-9b64-e69d35ed3a76"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.