| 错误码 | 说明 |
|---|---|
| 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格式不正确 |
{
"coverage_information_is_enable": true,
"target_type": "string",
"staff_id": "string",
"value_list": [
{
"union_id": "string",
"openid": "string",
"eu_ext_id": "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
}
]
}
]
}curl --location -g --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",
"eu_ext_id": "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
}
]
}
]
}'{
"errcode": 0,
"errmsg": "ok"
}