渠道活码更新接口
POST
/api/v3/channelcode/update
请求参数
Header 参数
appId
string
应用 appId
默认值:
{{appId}}
timestamp
string
请求时间戳
默认值:
{{timestamp}}
sign
string
请求消息签名值
默认值:
{{sign}}
appKey
string
应用 appKey
默认值:
{{appKey}}
Body 参数application/json
description
string
渠道描述
assignType
integer
分配规则
当分配规则为随机分配或定量分配或顺序分配时,不支持更新为普通分配
verifyType
integer
好友通过方式
qrCodeLogo
string
活码头像地址
backupUserIds
array[integer]
备用员工
users
array [object {6}]
使用员工
salesId
integer
销售id
index
integer
顺序
weight
integer
权重
singleRoundLimit
integer
单轮添加好友上限
perDayLimit
integer
每日添加好友总上限
workPeriods
array [object {2}]
工作周期
welcomeMsgRule
object
欢迎语规则
timeSegmentDisable
boolean
分段欢迎语开关
textTemplate
string
文本消息模板
msgs
array [object {3}]
欢迎语信息
assignMode
integer
分配模式
groupId
string
所属分组
allowOffline
integer
是否允许员工上下线
isCustomComment
boolean
是否开启自定义备注
avoidMultiFollow
boolean
是否开启避免客户重复添加员工
autoTag
boolean
自动渠道标签
verificationSales
array [object {2}]
去重-员工
id
string
id
name
string
员工名
verificationDepartments
array [object {2}]
去重-部门
id
string
id
name
string
部门名
isUpdated
string
是否更新
id
integer
渠道活码id
customComment
object
自动备注
comment
string
自定义内容
commentConfig
array[integer]
自动备注配置
commentSort
array[integer]
自动备注排序
customerTagIds
array[integer]
客户标签id
verifyStart
string
自动通过好友开始时间
verifyEnd
string
自动通过好友结束时间
allowMaxPerday
integer
允许设置好友上限开关 只能是0/1
avoidMultiFollowLimitTimeUnit
integer
是否开启最近一次添加员工几天后可添加
avoidMultiFollowLimitTime
string
具体天数
示例
{
"id": 2436568,
"assignType": 1,
"autoTag": true,
"verifyType": 1,
"backupUserIds": [
543347291779264
],
"users": [
{
"salesId": 539059815217472,
"salesName": "赵润",
"index": 2,
"weight": 11,
"singleRoundLimit": 1,
"perDayLimit": 1,
"workPeriods": [
{
"dayOfWeek": "4",
"ranges":[
{
"start": "11:00",
"end": "12:00"
},
{
"start": "08:00",
"end": "19:00"
},
]
},
{
"dayOfWeek": "7",
"ranges":[
{
"start": "00:00",
"end": "09:00"
},
{
"start": "08:00",
"end": "12:00"
},
{
"start": "18:59",
"end": "19:00"
},
]
}
]
},
{
"salesId": 543347291779264,
"salesName": "张继圣",
"index": 1,
"weight": 1,
"singleRoundLimit": 1,
"perDayLimit": 11111,
},
],
"groupId": "547423467391168",
"assignMode":1,
"description":"gengxing啊21",
"allowMaxPerday":1,
"avoidMultiFollow":false,//避免重复添加员工
"verificationSales":[
{"id":5390591815217472},
],//重复范围-员工
"verificationDepartments":[
{"id":93186},
],//重复范围-部门
"avoidMultiFollowLimitTime":1,//距离最近一次添加好友天数
"allowOffline":0,//是否允许员工上下线
"customerTagIds":[2987253,2987255,2987257],//自动打标签
"verifyStart":"12:00",//自动通过好友开始时间
"verifyEnd":"19:00",//自动通过好友结束时间
"isCustomComment":true,//是否开启自定义备注
"customComment":{
"comment":"aaaaa1",//自定义内容,最多8个字符
"commentConfig":[1,2,3],//自动备注配置
"commentSort":[1,2,3]//自动备注排序
},
"qrCodeLogo":"https://blueh5.wechatsi.com/fdfsServer/group1/M00/04/00/rBIAY2R0ScuAPfr7AAErYghLXrY58.jpeg",//活码头像地址
"welcomeMsgRule":{
"textTemplate":"欢迎语",
"msgs":[
{
"msgType":"file",
"fileUrl":"https://blue.wechatsi.com/fdfsServer/group1/M00/04/3D/rBIAY2Sam1qAcNjgAAADTVXD0IA967.png",
"index":"6",
"fileId":"75954",
"mediaId":"3mudHajSbahFLemxy0cwoQ0yqu61GXWKTVqXm7oEtEMonYAUlbog7RmcvMCJVU4gD",
"fileName":"cae65154786243b47835583b21213f1c.jpeg",
"type":null,
"title":null,
"desc":null,
"appId":null,
"page":null
},
{
"msgType":"file",
"fileUrl":"https://blue.wechatsi.com/fdfsServer/group1/M00/04/35/rBIAY2SY7yuAJpjYABIgt2L-ryY196.mp4",
"index":"5",
"fileId":"75956",
"mediaId":"3hXJdcKhS5UCvpNQ0ltBLOqxpdXd9WSR2vsfXcPxMgdxBZwF7pMmIZ_vtU9AoPYQB",
"fileName":"d1b680cc92d637daf2fc2cc178cb70f9.jpeg",
"type":null,
"title":null,
"desc":null,
"appId":null,
"page":null
},
{
"msgType":"file",
"fileUrl":"https://blue.wechatsi.com/fdfsServer/group1/M00/04/3D/rBIAY2Sam2CAJerbAAjYu2OylQ0467.mp4",
"index":"4",
"fileId":"75957",
"mediaId":"3aeEGsA1OitwvdfMg4pHYqihE8N7e5H1x1wc0783pv2aB7Mp2iG3Kms77AXZvA6SG",
"fileName":"rBIAY2KPa0aAG1pBABIgtxHuR2Y758.mp4",
"type":null,
"title":null,
"desc":null,
"appId":null,
"page":null
},
{
"msgType":"link",
"fileUrl":"https://blue.wechatsi.com/fdfsServer/group1/M00/04/3D/rBIAY2Sam7qAZd1KAAANo2NmXBg771.png",
"index":"3",
"fileId":"75856",
"mediaId":"3RkLZHj0cUtw628v3mlAZYQGGiC74ggkD5mdkq_W4HZX2dl0AgjOITSgWQIRC-Njz",
"fileName":"94779bbe38a8b75c68c19fb66fda66c8.jpeg",
"type":null,
"title":"hao123",
"desc":"导航",
"appId":null,
"page":null,
"url":"https://www.hao123.com/?src=from_pc"
},
{
"msgType":"mccontent",
"fileUrl":"https://blue.wechatsi.com/webPlugin/template/rBHTxV8laISAT92DAAPRCmfAIyk491.jpg",
"index":"2",
"fileId":null,
"mediaId":null,
"fileName":null,
"type":null,
"title":"新人大礼包",
"desc":"唐雨@1新建的呀",
"appId":null,
"page":null,
"url":"https://blueh5.wechatsi.com/#/form?hjType=1&content_title=%E6%96%B0%E4%BA%BA%E5%A4%A7%E7%A4%BC%E5%8C%85&trace_deep=0&trace_id=e49ab65e-a3fa-4990-836f-24b7185771f8&content_id=9fbe71d1996411ec851700163e06cc86&snapshot_id=9fbe71d1996411ec851700163e06cc86&content_type=8&source_title=&source_type=1&showType=1,2,3,4&corp_id=wwd074f3968f56dcb0&sales_id="
},
]
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v3/channelcode/update' \
--header 'appId;' \
--header 'timestamp;' \
--header 'sign;' \
--header 'appKey: {{appKey}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 2436568,
"assignType": 1,
"autoTag": true,
"verifyType": 1,
"backupUserIds": [
543347291779264
],
"users": [
{
"salesId": 539059815217472,
"salesName": "赵润",
"index": 2,
"weight": 11,
"singleRoundLimit": 1,
"perDayLimit": 1,
"workPeriods": [
{
"dayOfWeek": "4",
"ranges":[
{
"start": "11:00",
"end": "12:00"
},
{
"start": "08:00",
"end": "19:00"
},
]
},
{
"dayOfWeek": "7",
"ranges":[
{
"start": "00:00",
"end": "09:00"
},
{
"start": "08:00",
"end": "12:00"
},
{
"start": "18:59",
"end": "19:00"
},
]
}
]
},
{
"salesId": 543347291779264,
"salesName": "张继圣",
"index": 1,
"weight": 1,
"singleRoundLimit": 1,
"perDayLimit": 11111,
},
],
"groupId": "547423467391168",
"assignMode":1,
"description":"gengxing啊21",
"allowMaxPerday":1,
"avoidMultiFollow":false,//避免重复添加员工
"verificationSales":[
{"id":5390591815217472},
],//重复范围-员工
"verificationDepartments":[
{"id":93186},
],//重复范围-部门
"avoidMultiFollowLimitTime":1,//距离最近一次添加好友天数
"allowOffline":0,//是否允许员工上下线
"customerTagIds":[2987253,2987255,2987257],//自动打标签
"verifyStart":"12:00",//自动通过好友开始时间
"verifyEnd":"19:00",//自动通过好友结束时间
"isCustomComment":true,//是否开启自定义备注
"customComment":{
"comment":"aaaaa1",//自定义内容,最多8个字符
"commentConfig":[1,2,3],//自动备注配置
"commentSort":[1,2,3]//自动备注排序
},
"qrCodeLogo":"https://blueh5.wechatsi.com/fdfsServer/group1/M00/04/00/rBIAY2R0ScuAPfr7AAErYghLXrY58.jpeg",//活码头像地址
"welcomeMsgRule":{
"textTemplate":"欢迎语",
"msgs":[
{
"msgType":"file",
"fileUrl":"https://blue.wechatsi.com/fdfsServer/group1/M00/04/3D/rBIAY2Sam1qAcNjgAAADTVXD0IA967.png",
"index":"6",
"fileId":"75954",
"mediaId":"3mudHajSbahFLemxy0cwoQ0yqu61GXWKTVqXm7oEtEMonYAUlbog7RmcvMCJVU4gD",
"fileName":"cae65154786243b47835583b21213f1c.jpeg",
"type":null,
"title":null,
"desc":null,
"appId":null,
"page":null
},
{
"msgType":"file",
"fileUrl":"https://blue.wechatsi.com/fdfsServer/group1/M00/04/35/rBIAY2SY7yuAJpjYABIgt2L-ryY196.mp4",
"index":"5",
"fileId":"75956",
"mediaId":"3hXJdcKhS5UCvpNQ0ltBLOqxpdXd9WSR2vsfXcPxMgdxBZwF7pMmIZ_vtU9AoPYQB",
"fileName":"d1b680cc92d637daf2fc2cc178cb70f9.jpeg",
"type":null,
"title":null,
"desc":null,
"appId":null,
"page":null
},
{
"msgType":"file",
"fileUrl":"https://blue.wechatsi.com/fdfsServer/group1/M00/04/3D/rBIAY2Sam2CAJerbAAjYu2OylQ0467.mp4",
"index":"4",
"fileId":"75957",
"mediaId":"3aeEGsA1OitwvdfMg4pHYqihE8N7e5H1x1wc0783pv2aB7Mp2iG3Kms77AXZvA6SG",
"fileName":"rBIAY2KPa0aAG1pBABIgtxHuR2Y758.mp4",
"type":null,
"title":null,
"desc":null,
"appId":null,
"page":null
},
{
"msgType":"link",
"fileUrl":"https://blue.wechatsi.com/fdfsServer/group1/M00/04/3D/rBIAY2Sam7qAZd1KAAANo2NmXBg771.png",
"index":"3",
"fileId":"75856",
"mediaId":"3RkLZHj0cUtw628v3mlAZYQGGiC74ggkD5mdkq_W4HZX2dl0AgjOITSgWQIRC-Njz",
"fileName":"94779bbe38a8b75c68c19fb66fda66c8.jpeg",
"type":null,
"title":"hao123",
"desc":"导航",
"appId":null,
"page":null,
"url":"https://www.hao123.com/?src=from_pc"
},
{
"msgType":"mccontent",
"fileUrl":"https://blue.wechatsi.com/webPlugin/template/rBHTxV8laISAT92DAAPRCmfAIyk491.jpg",
"index":"2",
"fileId":null,
"mediaId":null,
"fileName":null,
"type":null,
"title":"新人大礼包",
"desc":"唐雨@1新建的呀",
"appId":null,
"page":null,
"url":"https://blueh5.wechatsi.com/#/form?hjType=1&content_title=%E6%96%B0%E4%BA%BA%E5%A4%A7%E7%A4%BC%E5%8C%85&trace_deep=0&trace_id=e49ab65e-a3fa-4990-836f-24b7185771f8&content_id=9fbe71d1996411ec851700163e06cc86&snapshot_id=9fbe71d1996411ec851700163e06cc86&content_type=8&source_title=&source_type=1&showType=1,2,3,4&corp_id=wwd074f3968f56dcb0&sales_id="
},
]
}
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2023-06-30 01:39:37