- OpenAPI基本介绍
- 错误码参考表
- 访问频率和并发限制
- 消息订阅
- 获取访问凭据
- 员工管理
- 自定义订单管理
- 客户管理
- 客户积分管理
- 客户标签管理
- 客户画像管理
- 标签库管理
- 群聊管理
- 工单管理
- 销售过程管理
- 聊天记录管理
- 拉新排行榜
- 群裂变
- 群打卡
- 企微任务宝
- 拉新排行榜
- 自定义表单
- 客户转化
- 员工个人群发记录管理
- 渠道码管理
- 素材库管理
- 互动雷达管理
- 自定义侧边栏身份校验
- 有赞订单管理
- 小鹅通订单管理
- 项目管理
- 门店信息
- 人群包
- 客户群发
- 企微朋友圈
- 个人SOP
- 部门管理
- 群标签管理
- 话术库
- 企微数据专区
批量预设客户属性
POST
/open-api/pre_write_properties/batch_add
openapi
错误码 | 说明 |
---|---|
21820 | 员工id错误 |
21821 | 手机号格式不正确 |
21822 | union_id格式不正确 |
21823 | 生日格式不正确 |
21824 | 时间格式不正确 |
21825 | 预设属性最少录入两列 |
21826 | 无效的field_id |
21827 | 自定义字段缺少对应的类型参数 |
21828 | field_id和field_name不匹配 |
21829 | field_id和option_id不匹配 |
21830 | 创建预设属性失败 |
21831 | 缺少必传参数union_id或phone_number |
21832 | value_list长度限制最多50个 |
21833 | openid格式不正确 |
请求参数
Query 参数
access_token
string
调用接口凭证
默认值:
{{access_token}}
Body 参数application/json
coverage_information_is_enable
boolean
是否覆盖已有信息
target_type
string
必需
staff_id
string
操作员工id
value_list
array [object {13}]
可选
union_id
string
可选
openid
string
可选
phone_number
string
可选
state
string
基本信息,来源
age
string
基本信息,年龄
description
string
基本信息,描述
email
string
基本信息,邮箱
birthday
string
基本信息,生日
weibo
string
基本信息,微博
qq
string
基本信息,qq
address
string
基本信息,地址
remark
string
基本信息,备注名
cf_fields
array [object {6}]
可选
示例
{
"coverage_information_is_enable": true,
"target_type": "string",
"staff_id": "string",
"value_list": [
{
"union_id": "string",
"openid": "string",
"phone_number": "string",
"state": "string",
"age": "string",
"description": "string",
"email": "string",
"birthday": "string",
"weibo": "string",
"qq": "string",
"address": "string",
"remark": "string",
"cf_fields": [
{
"field_id": 0,
"field_name": "string",
"field_datetime": "string",
"option_id": 0,
"field_value": "string",
"number_value": 0
}
]
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open.weibanzhushou.com/open-api/pre_write_properties/batch_add?access_token=' \
--header 'Content-Type: application/json' \
--data-raw '{
"coverage_information_is_enable": true,
"target_type": "string",
"staff_id": "string",
"value_list": [
{
"union_id": "string",
"openid": "string",
"phone_number": "string",
"state": "string",
"age": "string",
"description": "string",
"email": "string",
"birthday": "string",
"weibo": "string",
"qq": "string",
"address": "string",
"remark": "string",
"cf_fields": [
{
"field_id": 0,
"field_name": "string",
"field_datetime": "string",
"option_id": 0,
"field_value": "string",
"number_value": 0
}
]
}
]
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"errcode": 0,
"errmsg": "ok"
}
🟢200正常返回
修改于 2025-01-10 03:15:03