Skip to content

回传笔试结果

飞书招聘的笔试服务商,可通过该接口回传候选人的笔试结果。回传笔试结果后,候选人在飞书招聘内的笔试状态将变为「已作答」。

Tip: * 该接口支持重复调用,每次调用将覆盖前序调用回传的笔试结果。如回传后需更新笔试结果,可再次调用该接口。

  • 若客户已在飞书招聘内完成阅卷,则无法再调用该接口更新笔试结果。

请求

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

请求头

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

路径参数

名称类型描述
exam_idstring笔试 ID,可通过创建笔试事件获取
示例值:"7178536692385679677"

请求体

名称类型必填描述
resultstring笔试结果。表示该场笔试考生的笔试成绩,推荐传 "0"-"100" 的数字(字符串格式),如 "60"、"90" 等
示例值:"60.5"
result_timestring笔试结果时间,毫秒时间戳
示例值:"1658676234053"
report_listeco_exam_result_report\[\]报告列表
  └ namestring报告名称
示例值:"张三的笔试结果.pdf"
  └ urlstring报告链接
示例值:"https://xxxxx/xxxxxx/xxxx.pdf"
  └ answer_timestring作答完成时间,毫秒时间戳
示例值:"1658676234053"
detail_listeco_exam_result_detail\[\]详细评价结果
  └ idstring评价项 ID,由调用方自定义
示例值:"pj001"
  └ namestring评价项名称,由调用方自定义。 单次调用支持传入多个相同的评价项名称,结果将在「飞书招聘」-「候选人详情」-「笔试卡片」中并列展示
示例值:"基本功"
  └ resultstring评价结果,由调用方自定义
示例值:"优秀"

请求体示例

json
{
    "result": "60.5",
    "result_time": "1658676234053",
    "report_list": [
        {
            "name": "张三的笔试结果.pdf",
            "url": "https://xxxxx/xxxxxx/xxxx.pdf",
            "answer_time": "1658676234053"
        }
    ],
    "detail_list": [
        {
            "id": "pj001",
            "name": "基本功",
            "result": "优秀"
        }
    ]
}

响应

响应体

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

响应体示例

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

错误码

HTTP状态码错误码描述排查建议
5001002001系统错误请根据实际报错信息定位问题或联系技术支持
4001002855用户已完成阅卷,不支持更新笔试结果请检查参数exam_id

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