2.0任务编辑
接口
/agent-api/new/user/{user_id}/task/{task_id}/edit
请求方式
GET
路由参数
参数 | 类型 | 示例 | 解释 | 必填 |
user_id | string | 5832d184-dd53-42a0-8ace-0bf8d660f4cc | 用户id | 是 |
task_id | string | f232d184-dd54-42a0-8ace-0bf8d660f4cc | 任务id | 是 |
请求参数
参数 | 类型 | 示例 | 解释 | 必填 |
sub_user_id | string | 876e5d57-fd76-4109-8b15-6726f1ec2dfa | 子账户id(传递此参数则是对子账户操作) | 否 |
返回示例
{
"code": 200,
"status": "success",
"message": "返回任务信息成功",
"data": {
"maximumcall": 1,
"recycle_limit": 0,
"name": "测试api接口创建-测试站-2",
"remark": null,
"destination_extension": "480",
"random_assignment_number": 0,
"_originate_timeout": 60,
"caller_line_id": null,
"bridge_group_id": null,
"auto_recycle_rule_id": 94,
"dial_time_id": 223,
"end_action": 1,
"llm_intention_id": 0,
"new_task_extra": {
"name": "测试api接口创建-测试站-2",
"enable": true,
"line": [
"ece66f74-149e-455a-ba9e-2d71fa0cab84"
],
"limit": 1,
"cps": 1,
"start_time": "2024-11-01 13:25:26",
"stop_time": "2025-11-01 13:25:26",
"holiday": [
{
"start": "2024-11-01 13:25",
"end": "2024-11-03 13:25"
}
],
"work_week": [
1,
2,
3,
4,
5,
6,
0
],
"work_hour": [
{
"wday": "-1",
"begin": "02:30",
"end": "07:00"
},
{
"wday": "-1",
"begin": "12:30",
"end": "20:30"
}
],
"destination_extension": "480",
"blacklist": "",
"call_status": true,
"number_count": 0,
"call_info": []
},
"background_id": null,
"caller_line_name": null,
"destination_extension_name": "测试222",
"status": 3,
"call_status": true,
"status_str": "等待执行",
"elasticity_task": false,
"task_extras": { // 本地任务-使用
"line": [
"ece66f74-149e-455a-ba9e-2d71fa0cab84"
],
"holiday": [
{
"end": "2024-11-03 13:25",
"start": "2024-11-01 13:25"
}
],
"stop_time": "2025-11-01 13:25:26",
"work_hour": [
{
"end": "07:00",
"wday": 1,
"begin": "02:30"
},
{
"end": "20:30",
"wday": 1,
"begin": "12:30"
},
{
"end": "07:00",
"wday": 2,
"begin": "02:30"
},
{
"end": "20:30",
"wday": 2,
"begin": "12:30"
},
{
"end": "07:00",
"wday": 3,
"begin": "02:30"
},
{
"end": "20:30",
"wday": 3,
"begin": "12:30"
},
{
"end": "07:00",
"wday": 4,
"begin": "02:30"
},
{
"end": "20:30",
"wday": 4,
"begin": "12:30"
},
{
"end": "07:00",
"wday": 5,
"begin": "02:30"
},
{
"end": "20:30",
"wday": 5,
"begin": "12:30"
},
{
"end": "07:00",
"wday": 6,
"begin": "02:30"
},
{
"end": "20:30",
"wday": 6,
"begin": "12:30"
},
{
"end": "07:00",
"wday": 0,
"begin": "02:30"
},
{
"end": "20:30",
"wday": 0,
"begin": "12:30"
}
],
"work_week": [
1,
2,
3,
4,
5,
6,
0
],
"start_time": "2024-11-01 13:25:26",
"interval_time": 0
},
"components": [
{
"id": "4dd00352-a660-453f-9438-626ae4307390",
"name": "QQ",
"type": "text",
"sort": 6,
"validate": [
"sometimes"
]
}
]
}
}
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
165
166
167
168
169
170
171
172
173
174
175
176
参数 | 类型 | 解释 |
name | string | 任务名称 |
maximumcall | int | 最大并发呼叫 |
call_per_second | int | CPS 每秒最大发起多少个呼叫 |
recycle_limit | int | 号码最大回收次数(废弃) |
random_assignment_number | int | 是否随机分配号码(废弃) |
dial_time_id | int | 呼叫时间id |
destination_extension | int | 话术组id |
remark | string | 任务别名(备注) |
originatetimeout | int | 拨号超时 |
caller_line_id | string | 线路id |
auto_recycle_rule_id | string | 重呼规则id |
bridge_group_id | int | 转接组id |
end_action | int | 任务结束动作 0-无操作 1-暂停任务释放并发 |
llm_intention_id | int | 大模型意向标签配置id |
background_id | int | 背景音id |
task_extras | json | 任务额外信息 |
status_str | string | 任务状态转译 |
new_task_extra | json | 任务额外信息(2.0) |
status | int | 状态 |
components | array | 绑定话术组使用的动态变量(仅限于常规外呼任务) |
start_time | datetime | 开始时间 |
interval_time | int | 呼叫间隔时间 |
