所有文章
完整版
完整版
客户端
API文档
升级日志
合作伙伴
基础知识
2.0任务编辑
最后更新于 2024/12/05 阅读数 4
2.0任务编辑
此接口【v1.2.31版本有变动】 查看变更日志
接口
/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
}
}
}
1
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
plaintext2
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
评价这篇文档
有帮助
没帮助
未能解决您的问题?请联系
在线客服