AssignJobs
Creates outbound call jobs in batches.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
outboundbot:AssignJobs |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
12f3dd08-0c55-44ce-9b64-e69d35ed3a76 |
| JobGroupId |
string |
Yes |
The job group ID. |
d004cfd2-6a81-491c-83c6-cbe186620c95 |
| StrategyJson |
string |
No |
The execution strategy for the job group.
|
{"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"} |
| RosterType |
string |
No |
The roster type. If you create jobs by calling this API, you can omit this parameter. The default value is |
json |
| JobDataParsingTaskId |
string |
No |
The ID of the data parsing task for the outbound call job. You can omit this parameter if you create jobs by calling this API. Note
If you create jobs by uploading a file, you must call the |
d004cfd2-6a81-491c-83c6-cbe186620c95 |
| IsAsynchrony |
boolean |
No |
Specifies whether the task is asynchronous. You can omit this parameter if you create jobs by calling this API. The default value is |
false |
| CallingNumber |
array |
No |
These numbers are displayed as the caller ID to the contact. Note
If unspecified, all available calling numbers are used. |
|
|
string |
No |
A calling number. |
4008013260 |
|
| JobsJson |
array |
No |
Important This parameter is required. The job data, a JSON array where each object represents a contact. For formatting details, see the example. The array can contain up to 99 elements. |
|
|
string |
Yes |
|
{ "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 object. |
||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| JobGroupId |
string |
The job group ID. |
390515b5-6115-4ccf-83e2-52d5bfaf2ddf |
| RequestId |
string |
The request ID. |
254EB995-DEDF-48A4-9101-9CA5B72FFBCC |
| Success |
boolean |
Indicates whether the request was successful. |
true |
| Code |
string |
The status code. |
OK |
| Message |
string |
The response message. |
Success |
| JobsId |
array |
A list of job IDs. |
|
|
string |
The job ID. |
12f3dd08-0c55-44ce-9b64-e69d35ed3a76 |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"JobGroupId": "390515b5-6115-4ccf-83e2-52d5bfaf2ddf",
"RequestId": "254EB995-DEDF-48A4-9101-9CA5B72FFBCC",
"Success": true,
"Code": "OK",
"Message": "Success",
"JobsId": [
"12f3dd08-0c55-44ce-9b64-e69d35ed3a76"
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | An error occurred while processing your request. Please try again later. Submit a ticket if the error still exists. | |
| 404 | NotExist.Instance | The specified Instance does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.