更新账号自定义字段
飞书招聘的背调或笔试服务商,可通过此接口更新账号自定义字段(比如客户在服务商处的租户 ID、账号 ID等)的名称和描述。
Tip: 更新操作仅影响客户已有账号的自定义字段展示,但不影响自定义字段的值。
请求
| 项目 | 值 |
|---|---|
| HTTP URL | https://open.feishu.cn/open-apis/hire/v1/eco_account_custom_fields/batch_update |
| HTTP Method | PATCH |
| 接口频率限制 | 1000 次/分钟、50 次/秒 |
| 支持的应用类型 | custom,isv |
| 权限要求 调用该 API 所需的权限。开启其中任意一项权限即可调用 开启任一权限即可 | hire:background_check_order 更新招聘背调信息 hire:exam 更新笔试信息 |
请求头
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| Authorization | string | 是 | tenant_access_token 值格式:"Bearer access_token" 示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560" 了解更多:如何选择与获取 access token |
| Content-Type | string | 是 | 固定值:"application/json; charset=utf-8" |
请求体
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
scope | int | 是 | 适用范围 示例值:1 可选值有: - 1: 背调 - 2: 笔试 |
custom_field_list | eco_account_custom_field_data\[\] | 是 | 自定义字段列表 |
└ key | string | 是 | 当前scope下已存在的自定义字段的标识示例值:"account_token" |
└ name | i18n | 是 | 自定义字段的名称。用户在「飞书招聘」-「设置」-「生态对接」-「笔试/背景调查」下添加账号时看到的表单控件标题 |
└ zh_cn | string | 否 | 自定义字段中文名称 示例值:"账号token" |
└ en_us | string | 否 | 自定义字段英文名称 示例值:"Account token" |
└ is_required | boolean | 是 | 是否必填。 可选值有: * true:必填 * false:非必填注意:该字段在当前接口暂不生效 示例值:true |
└ description | i18n | 否 | 自定义字段的描述。用户在「飞书招聘」-「设置」-「生态对接」-「笔试/背景调查」下添加账号时看到的控件提示信息 |
└ zh_cn | string | 否 | 中文名称 示例值:"账号的唯一标识,可联系客服获取" |
└ en_us | string | 否 | 英文名称 示例值:"The unique identifier of the account can be obtained by contacting the customer service" |
请求体示例
json
{
"scope": 1,
"custom_field_list": [
{
"key": "account_token",
"name": {
"zh_cn": "账号token",
"en_us": "Account token"
},
"is_required": true,
"description": {
"zh_cn": "账号的唯一标识,可联系客服获取",
"en_us": "The unique identifier of the account can be obtained by contacting the customer service"
}
}
]
}响应
响应体
| 名称 | 类型 | 描述 |
|---|---|---|
code | int | 错误码,非 0 表示失败 |
msg | string | 错误描述 |
data | \- | - |
响应体示例
json
{
"code": 0,
"msg": "ok",
"data": {}
}错误码
| HTTP状态码 | 错误码 | 描述 | 排查建议 |
|---|---|---|---|
| 500 | 1002001 | 系统错误 | 请根据实际报错信息定位或咨询技术支持 |
