任务列表(所有子账号)
最后更新于 2024/10/11 阅读数 22
任务列表(所有子账号)
此接口【v1.2.31版本有变动】 查看变更日志
请求接口
/agent-api/user/{user_id}/subset_task
请求方式
GET
路由参数
参数
类型
示例
解释
必填
user_id
string
5832d184-dd53-42a0-8ace-0bf8d660f4cc
用户id
是
请求参数
参数
类型
示例
解释
必填
page
int
1
页码
否
per_page
int
15
每页个数
否
name
string
任务
任务名称
否
status
int || array
1 || [1,2]
1 :暂停中 2:执行中 3:等待执行
否
注意 :传递请求参数status 以数组类型传递时,数组中出现不包含解释中的固定参数时,将会返回未筛选状态的数据。
返回示例
{ "code": 200, "status": "success", "message": "返回所有子账号的任务列表信息成功", "meta": { "has_pages": true, "total": 7, "last_page": 7, "current_page": 1, "per_page": "1" }, "data": [ { "uuid": "ba5b18d4-a4c4-4ba0-bd1f-f5af8d01997a", "name": "0928xiong【复制】【复制】【复制】【复制】【复制】【复制】2024-08-13(12:04)", "create_datetime": "2024-08-13 12:04:06", "alter_datetime": "2024-08-23 17:58:07", "start": 0, "enable": false, "maximumcall": 1, "call_per_second": 10, "recycle_limit": 0, "random_assignment_number": 0, "disable_dial_timegroup": "89d62c45-a34c-4292-85f6-8af0cf40e1cf", "dial_time_id": 5049, "destination_extension": "17992", "destination_dialplan": "XML", "destination_context": "default", "scheduling_policy_ratio": null, "scheduling_queue": null, "dial_format": "", "domain": null, "remark": null, "sort": 8, "originate_variables": "{execute_on_media=start_da,execute_on_answer=sched_hangup +300 ALLOTTED_TIMEOUT}", "_originate_timeout": 60, "_origination_caller_id_number": "", "user_id": "1181ffd3-e3ee-4d75-a45c-8b9be3deb330", "caller_line_id": null, "auto_recycle_rule_id": 5562, "clue_configuration_id": null, "deleted_at": null, "call_notify_url": "http://192.168.0.193:8781/app/hangupNotify?tenant=69678406-467c-4094-9e27-8439a9118ce0", "call_notify_type": 2, "call_pause_second": 0, "call_stop_notify_url": "http://192.168.0.4/api/tenant/69678406-467c-4094-9e27-8439a9118ce0/call_stop_notify", "call_notify_fail_stop": 0, "bridge_group_id": null, "is_test": false, "is_top": 0, "empty_seat_stop": 0, "background_file_id": null, "background_file_name": null, "end_action": 1, "task_type": 1, "line_callee": "", "cache_number_count": 0, "mode_id": null, "bridge_maximumcall": 0, "bridge_proportion": 0, "direct_bridge": 0, "direct_bridge_echo": 0, "llm_intention_id": 0, "restart_at": null, "enable_type": 0, "caller_line": null, "auto_recycle_rule": { "id": 5562, "user_id": "1181ffd3-e3ee-4d75-a45c-8b9be3deb330", "name": "85", "remark": "5", "status": true, "created_at": "2023-01-04 15:40:55", "updated_at": "2023-01-04 15:40:55", "is_default": true, "type": 1, "configs": [] }, "task_dial_time": { "id": 5049, "name": "测试呼叫时间", "user_id": "1181ffd3-e3ee-4d75-a45c-8b9be3deb330", "content": [ { "week": 0, "times": [ { "end_time": "23:59", "begin_time": "00:00" } ] }, { "week": 1, "times": [ { "end_time": "23:59", "begin_time": "00:00" } ] }, { "week": 2, "times": [ { "end_time": "23:59", "begin_time": "00:00" } ] }, { "week": 3, "times": [ { "end_time": "23:59", "begin_time": "00:00" } ] }, { "week": 4, "times": [ { "end_time": "23:59", "begin_time": "00:00" } ] }, { "week": 5, "times": [ { "end_time": "23:59", "begin_time": "00:00" } ] }, { "week": 6, "times": [ { "end_time": "23:59", "begin_time": "00:00" } ] } ], "is_default": true, "skip_holiday": false, "remark": null, "created_at": "2022-09-29 18:01:16", "updated_at": "2022-09-29 18:01:16" }, "group": { "id": 17992, "name": "0928xiong【复制】【复制】【复制】【复制】【复制】【复制】", "default": false }, "llm_intention_config": null, "status": 1, "status_str": "停止" } ] }
1text
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
评价这篇文档
有帮助
没帮助
未能解决您的问题?请联系
在线客服