知识中心
所有文章
帮助中心
AI客户联络中心 升级日志
API文档
AI客户联络
API接口
【新】云节点列表
对话接口
白标接口及地址
任务编辑
最后更新于 2023/05/18   阅读数 409

任务编辑


此接口【v1.2.31版本有变动】 查看变更日志

  • 接口 /agent-api/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": {
        "start": 0, // 是否开启,1开启、0暂停 // 已废弃
        "maximumcall": 1, // 最大并发
        "recycle_limit": 1, // 已废弃
        "name": "api创建任务", // 任务名称
        "remark": null, // 任务描述
        "destination_extension": 1612, // 话术组id
        "disable_dial_timegroup": "146979fe-3864-4817-ad76-13b37f43bb1c", // 已废弃 禁呼时间组id 
        "dial_time_group": { // 呼叫时间组
            "id": 1505,
            "name": "周一、周二8-10",
            "user_id": "4d99d91c-f5d9-49da-88da-758977cc58a9",
            "content": [
                {
                    "week": 0,
                    "times": [
                        {
                            "end_time": "12:00",
                            "begin_time": "08:00"
                        }
                    ]
                },
                {
                    "week": 1,
                    "times": [
                        {
                            "end_time": "22:00",
                            "begin_time": "08:00"
                        }
                    ]
                },
                {
                    "week": 2,
                    "times": [
                        {
                            "end_time": "22:00",
                            "begin_time": "08:00"
                        }
                    ]
                },
                {
                    "week": 3,
                    "times": [
                        {
                            "end_time": "22:00",
                            "begin_time": "08:00"
                        }
                    ]
                },
                {
                    "week": 4,
                    "times": [
                        {
                            "end_time": "22:00",
                            "begin_time": "08:00"
                        }
                    ]
                },
                {
                    "week": 5,
                    "times": [
                        {
                            "end_time": "22:00",
                            "begin_time": "08:00"
                        }
                    ]
                },
                {
                    "week": 6,
                    "times": [
                        {
                            "end_time": "22:00",
                            "begin_time": "08:00"
                        }
                    ]
                }
            ],
            "is_default": false,
            "skip_holiday": false,
            "remark": null,
            "created_at": "2022-01-14 15:33:14",
            "updated_at": "2022-01-17 15:49:19"
        },
        "status": 2, //任务状态枚举 1-停止 2-执行中 3-等待执行 
        "status_str": "执行中",//任务状态描述 
        "call_pause_second": 0, // 通话暂停秒数,一般都为0
        "random_assignment_number": 0, // 已废弃
        "_originate_timeout": 60, // 呼叫超时时间,没特殊需求为60
        "caller_line_id": "ed5aaaad-f074-4f18-9ca2-362c622dc559", // 使用的线路id
        "bridge_group_id": 3, // 使用的转接组
        "auto_recycle_rule_id": 1 // 重呼规则
        "caller_line_name": "银河zq" //线路名称
        "destination_extension_name": "演示话术分组", //话术名称
        "end_action":1,//任务结束动作
        "time_range": [  //已废弃
            {
                "uuid": "297e8cc7-23d0-4339-ae2f-5f7386b63fe6",
                "begin_datetime": "18:00:00",
                "end_datetime": "09:00:00",
                "group_uuid": "8c7f43ec-b690-48a6-a46d-1ae11b662cc4"
             },
            {
                "uuid": "9ee7cdb2-d41b-4d82-a5fd-acaef7fe8de8",
                "begin_datetime": "12:00:00",
                "end_datetime": "13:00:00",
                "group_uuid": "8c7f43ec-b690-48a6-a46d-1ae11b662cc4"
            }
        ]
    }
}
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
plaintext
未能解决您的问题?请联系
本篇目录

任务编辑