Skip to content

创建背调自定义字段

创建用户在发起背调时展示的表单自定义字段。自定义字段支持多种类型如单行文本、单选等,可以设置为必填或非必填。

Warning: * 创建操作不影响已发起的背调。

  • 此接口为全量更新,多次调用时,将生效最后一次调用传入的自定义字段。

请求

项目
HTTP URLhttps://open.feishu.cn/open-apis/hire/v1/eco_background_check_custom_fields
HTTP MethodPOST
接口频率限制1000 次/分钟、50 次/秒
支持的应用类型custom,isv
权限要求 调用该 API 所需的权限。开启其中任意一项权限即可调用hire:background_check_order 更新招聘背调信息

请求头

名称类型必填描述
Authorizationstringtenant_access_token 值格式:"Bearer access_token" 示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560" 了解更多:如何选择与获取 access token
Content-Typestring固定值:"application/json; charset=utf-8"

请求体

名称类型必填描述
account_idstring背调账号 ID,可在账号绑定事件中获取
示例值:"6995842370159937061"
custom_field_listeco_background_check_custom_field_data\[\]自定义字段列表
  └ typestring自定义字段类型
示例值:"select"
可选值有
- text: 单行文本,最多100个汉字 - textarea: 多行文本,最多200个汉字 - number: 数字 - boolean: 布尔 - select: 单选 - multiselect: 多选 - date: 日期 - file: 附件 - resume: 候选人简历
  └ keystring自定义字段的标识,在同一账号内唯一
示例值:"candidate_degree"
  └ namei18n自定义字段的名称,用户在安排背调表单看到的控件标题
    └ zh_cnstring中文名称
示例值:"候选人学历"
    └ en_usstring英文名称
示例值:"Candidate degree"
  └ is_requiredboolean是否必填
示例值:true
  └ descriptioni18n自定义字段的描述。如果是输入控件(type=text 或 type=textarea),为用户在安排背调表单看到的 placeholder 或 提示文字
    └ zh_cnstring中文描述
示例值:"候选人的真实学历"
    └ en_usstring英文描述
示例值:"The candidate's real degree"
  └ optionseco_background_check_custom_field_data_option\[\]type 为selectmultiselect时必填,单选或多选的选项
    └ keystring选项的唯一标识
示例值:"bachelor"
    └ namei18n选项的名称
      └ zh_cnstring中文名称
示例值:"本科"
      └ en_usstring英文名称
示例值:"Bachelor"

请求体示例

json
{
    "account_id": "6995842370159937061",
    "custom_field_list": [
        {
            "type": "select",
            "key": "candidate_degree",
            "name": {
                "zh_cn": "候选人学历",
                "en_us": "Candidate degree"
            },
            "is_required": true,
            "description": {
                "zh_cn": "候选人的真实学历",
                "en_us": "The candidate's real degree"
            },
            "options": [
                {
                    "key": "bachelor",
                    "name": {
                        "zh_cn": "本科",
                        "en_us": "Bachelor"
                    }
                }
            ]
        }
    ]
}

响应

响应体

名称类型描述
codeint错误码,非 0 表示失败
msgstring错误描述
data\--

响应体示例

json
{
    "code": 0,
    "msg": "success",
    "data": {}
}

错误码

HTTP状态码错误码描述排查建议
4001002855参数错误或系统异常请根据实际报错信息定位问题或联系技术支持
5001002001系统错误请根据实际报错信息定位问题或联系技术支持

内容来源:飞书开放平台 · 自动爬取整理