Skip to content

创建外部投递

创建外部投递,可用于导入来自其他系统的投递信息。

请求

项目
HTTP URLhttps://open.feishu.cn/open-apis/hire/v1/external_applications
HTTP MethodPOST
接口频率限制20 次/秒
支持的应用类型custom
权限要求 调用该 API 所需的权限。开启其中任意一项权限即可调用hire:external_application 更新外部投递

请求头

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

请求体

名称类型必填描述
external_idstring外部系统投递主键 (仅用于幂等) - 若不传此值,则不进行幂等校验 - 若传此值,则用于幂等校验,同一 external_id 24小时内仅可创建一次
示例值:"729557715718"
job_recruitment_typeint职位招聘类型
示例值:1
可选值有
- 1: 社招 - 2: 校招
job_titlestring职位名称
示例值:"高级 Java"
resume_sourcestring简历来源
示例值:"内推"
stagestring阶段名称
示例值:"简历初筛"
talent_idstring人才 ID,可通过获取人才列表接口获取
示例值:"6960663240925956459"
termination_reasonstring终止原因
示例值:"不合适"
delivery_typeint投递类型
示例值:1
可选值有
- 1: HR 寻访 - 2: 候选人主动投递 - 3: 人才推荐 - 4: 其他
modify_timeint投递在外部系统终止时间,毫秒时间戳(字段类型为:int64)
示例值:1618500278645
create_timeint投递在外部系统创建时间,毫秒时间戳(字段类型为:int64)
示例值:1618500278644
termination_typestring终止类型
示例值:"HR 主动终止"

请求体示例

json
{
    "external_id": "729557715718",
    "job_recruitment_type": 1,
    "job_title": "高级 Java",
    "resume_source": "内推",
    "stage": "简历初筛",
    "talent_id": "6960663240925956459",
    "termination_reason": "不合适",
    "delivery_type": 1,
    "modify_time": 1618500278645,
    "create_time": 1618500278644,
    "termination_type": "HR 主动终止"
}

响应

响应体

名称类型描述
codeint错误码,非 0 表示失败
msgstring错误描述
data\--
  └ external_applicationexternal_application外部投递信息
    └ idstring外部投递 ID(由飞书招聘系统生成)
    └ job_recruitment_typeint职位招聘类型
可选值有
- 1: 社招 - 2: 校招
    └ job_titlestring职位名称
    └ resume_sourcestring简历来源
    └ stagestring阶段名称
    └ talent_idstring人才 ID,详情请查看:获取人才信息
    └ termination_reasonstring终止原因
    └ delivery_typeint投递类型
可选值有
- 1: HR 寻访 - 2: 候选人主动投递 - 3: 人才推荐 - 4: 其他
    └ modify_timeint投递在外部系统终止时间,毫秒时间戳(字段类型为:int64)
    └ create_timeint投递在外部系统创建时间,毫秒时间戳(字段类型为:int64)
    └ termination_typestring终止类型

响应体示例

json
{
    "code": 0,
    "msg": "ok",
    "data": {
        "external_application": {
            "id": "6989202908470446380",
            "job_recruitment_type": 1,
            "job_title": "高级Java",
            "resume_source": "内推",
            "stage": "简历初筛阶段",
            "talent_id": "6960663240925956459",
            "termination_reason": "不合适",
            "delivery_type": 1,
            "modify_time": 1618500278645,
            "create_time": 1618500278644,
            "termination_type": "HR 主动终止"
        }
    }
}

错误码

HTTP状态码错误码描述排查建议
5001002001系统异常请根据实际报错信息定位问题或联系技术支持
4001002002参数错误检查参数是否正确,例如类型,大小
4001002102人才不存在人才不存在,请检查talent_id参数的正确性

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