| 错误码 | 说明 |
|---|---|
| 21811 | 字段类型必须为"text"或"option_text"或"datetime" |
| 21812 | option_text类型必须添加至少一个选项 |
| 21813 | 选项条数最多支持100条 |
| 21814 | 添加的选项中存在重复的选项名称 |
| 21815 | 选项名称长度最多支持15个字符 |
| 21816 | 字段名称长度最多支持5个字符 |
| 21817 | 当前已存在相同名称的自定义字段 |
| 21818 | 字段总数量不能超过50条 |
| 21819 | option_name不能为空 |
{
"field_name": "样例文",
"field_type": "option_text",
"option_name_list": [
"选项文本1",
"选项文本2"
]
}curl --location -g --request POST 'https://open.weibanzhushou.com/open-api/external_user_custom_field/add?access_token=' \
--header 'Content-Type: application/json' \
--data-raw '{
"field_name": "样例文",
"field_type": "option_text",
"option_name_list": [
"选项文本1",
"选项文本2"
]
}'{
"errcode": 0,
"errmsg": "ok"
}