编辑超时回复规则
企业可通过此接口编辑会话存档超时回复规则
请求方式: POST(HTTPS)
请求地址: https://open.wshoto.com/openapi/chat/timeout/rule_edit
Query参数:
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | string | 是 | 调用接口凭证 |
Body参数
{
"rule_id": "123",
"rule_name": "测试群发任务",
"create_user_id": "woDkH9E123hSPUP72PRyx8x3dbQ",
"watch_no_range_list": [
{
"is_department": true,
"key_id": "test_8b1fa4b1e3fc"
}
],
"chat_time_out": 5,
"receive_days": [
1
],
"receive_start_time": 123456789,
"receive_end_time": 123456789,
"rule_type": 1,
"notice_type_list": [
1
],
"notice_range_list": [
{
"is_department": true,
"key_id": "test_30b67f69523c"
}
],
"chat_notice_type": 1,
"chat_group_scope": 1,
"chat_group_name_list": [
"test_96c95de1a777"
],
"tag_info_list": [
{
"tag_id": "test_649e48b5e80d",
"tag_name": "test_5a5e26656424"
}
],
"chat_group_owner_list": [
{
"id": "test_aaee702b9518",
"type": 1
}
]
}
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
rule_id | string | 是 | 规则id |
rule_name | string | 是 | 规则名称,最大长度:30 |
create_user_id | string | 是 | 创建规则员工id |
chat_time_out | int | 是 | 超时回复提醒时长,精度:分钟.最小值:5.最大值:1440 |
receive_days | array | 是 | 接收消息时间,传入数字1,2,3,4,5,6,7.每个数字对应周一,周二,周三等. |
receive_start_time | long | 是 | 接收开始时间,格式:时间戳.精度:秒. 传入对应固定年月日的动态时分秒时间戳即可.开始时间必须小于结束时间 |
receive_end_time | long | 是 | 接收结束时间,格式:时间戳.精度:秒. 传入对应固定年月日的动态时分秒时间戳即可.开始时间必须小于结束时间 |
watch_no_range_list | object[] | 是 | 适用员工集合 |
is_department | bool | 是 | 是否部门 |
key_id | string | 是 | 人员id/部门id |
rule_type | int | 是 | 生效场景.1-单聊;2-群聊中客户发言;3-群聊中客户@我.当rule_type不等于1时候,chat_group_scope必填 |
notice_type_list | array | 是 | 被通知类型. 1-提醒对应员工 2-群聊触发超时回复,提醒指定人群 3-提醒所在管理组的管理员 4-提醒指定人员 |
notice_range_list | object[] | 否 | 提醒指定人员.notice_type_list包含4时,该集合必填 |
is_department | bool | 是 | 是否部门. |
key_id | string | 是 | 人员id/部门id. |
chat_notice_type | int | 否 | 群聊触发超时回复,提醒指定人群类型.1-群主和群管理员;2-群主,3-群管理员.notice_type_list包含2时,该字段必填 |
chat_group_scope | int | 否 | 群聊范围.1-全部群聊;2-按条件筛选 |
chat_group_name_list | array | 否 | 群聊名称包含关键字.集合最大长度:7.最小长度:1 |
tag_info_list | object[] | 否 | 标签信息集合.集合最大长度:7.最小长度:1 |
tag_id | string | 是 | 标签id |
tag_name | string | 是 | 标签名称 |
chat_group_owner_list | object[] | 否 | 群聊群主信息集合 |
id | string | 是 | 群主员工id或者部门id |
type | int | 是 | id类型.1-部门,2-员工 |
返回值:
{
"code": 0,
"msg": "请求成功",
"data": true
}
返回说明:
参数 | 类型 | 说明 |
---|---|---|
code | int | 出错返回码,为0表示成功,非0表示调用失败 |
msg | string | 返回码描述 |
data | bool | 响应结果 |