人才库数据导入
GET
/api-platform/v2/syncCandidates请求body参数 (multipart/form-data方式)
字段 | 类型 | 描述 |
---|---|---|
candidateInfo | string | json格式的字符串,字段同json请求方式的body |
resume | file | 简历文件 |
attachments | file | 附件文件,可以同时传多个 |
可能的错误信息
code | errorMessage | 说明 |
---|---|---|
200 | success | 成功 |
1240040102 | channel_source.error | 渠道来源错误 |
1240040104 | talent_pool_Id.error | 人才库错误 |
1240040105 | userId.error | 用户id错误(a.不存在该用户;b.ID错误) |
1240040106 | user_permission.error | 用户无权限 |
请求参数
Body 参数application/json
orgId
string
必需
candidateName
string
候选人姓名
candidatePhone
string
候选人手机号
candidateEmail
string
候选人邮箱
note
string
备注
talentPoolId
integer
必需
若是入职人才库,需填写:hired_type、hired_time 若是离职人才库,须填写:resign_type、resign_detail、resign_time 若需要导入黑名单人才库,此人才库ID为黑名单人才库ID 若要导入人才库,则该字段是必填的
email
string
必需
用户邮箱 有人才库权限的用户邮箱, 若归档候选人时,该字段必填
resignDepartment
string
必需
reason
integer
可选
离职原因 0:已离职,1:主动离职,2:被动离职
detail
string
可选
离职详情 若为离职,该字段必填
time
string
必需
离职时间 若为空,则为当前时间
channelType
integer
可选
渠道类型 如果未匹配,默认:5 1:招聘网站,2:社招门户,3:内推门户,4:猎头,5:人才库,6:其他渠道,7:内部自有,8:招聘网站,9:招聘会,10:论坛,11:SNS,12:其他
channelName
string
必需
渠道 如果未匹配,默认:人才库
sourceStatistics
string
可选
来源效果 在channel_type为2、3、4时需要填写,若未填写,导入失败
source
integer
可选
来源 各个渠道默认的来源 1:主动搜索,2:主动投递,3:人才推荐
appliedAt
string
可选
申请时间 若为空,默认使用系统当前时间 格式遵从ISO8061标准
jobId
string
职位ID
candidateAge
integer
候选人年龄
candidateGender
string
候选人性别
candidateLastCompany
string
最近公司
candidateLastSpeciality
string
最近毕业专业
candidateAcademicDegree
string
最高学历
hiredTime
string
必需
入职时间 默认使用请求时间
educationInfo
array [object {5}]
教育经历
school
string
学校名称
startDate
string
开始时间
endDate
string
结束时间
speciality
string
学习专业
academicDegree
string
学历
experienceInfo
array [object {5}]
工作经验
company
string
公司名称
startDate
string
开始时间
endDate
string
结束时间
title
string
工作职位
summary
string
工作职责
projectInfo
array [object {6}]
项目经验
projectName
string
项目名称
startDate
string
开始时间
endDate
string
结束时间
projectDescription
string
项目功能描述
title
string
项目中担任的职务
responsibilities
string
项目中的职责
practiceInfo
array [object {5}]
实习经历
company
string
可选
title
string
可选
startDate
string
可选
endDate
string
可选
summary
string
工作职责
jobIntention
object
求职意向
aimSalary
string
期望薪资
forwardLocation
string
期望城市
selfDescription
object
自我描述
personal
string
自我描述,简介
customFields
array [object {3}]
可选
id
integer
自定义字段id
value
object
自定义字段值
index
integer
可选
如果当前模块数据是一个数组且含有自定义字段,则该值必填且与数组下标一致(备注:支持自定义模块数据)
isResignWriteJob
boolean
可选
是否回写离职信息, 默认:0 0:不开启,1:开启,开启后需填写离职职位
resignJobName
string
离职职位
resignJobType
string
离职部门
示例
{
"orgId": "livingsimple",
"candidateName": "test",
"candidatePhone": "18700998899",
"candidateEmail": "1234@test.com",
"note": "测试备注",
"talentPoolId": 200000131,
"email": "xiedi@mokahr.com",
"resignDepartment": "离职部门",
"reason": 1,
"detail": "世界那么大,我想去看看",
"time": "2020-01-01 00:00:00",
"channelType": 5,
"channelName": "人才库",
"source": 0,
"jobId": "07af7045-b4e7-43eb-ba64-87128c4df3bf",
"candidateAge": 18,
"candidateGender": "男",
"candidateLastCompany": "天南",
"candidateLastSpeciality": "化工",
"candidateAcademicDegree": "本科",
"hiredTime": "2020-01-01 00:00:00",
"educationInfo": [
{
"school": "北京大学",
"startDate": "2014-09",
"endDate": "2017-06",
"speciality": "软件工程",
"academicDegree": "本科"
}
],
"experienceInfo": [
{
"company": "百度",
"startDate": "2014-09",
"endDate": "2017-06",
"title": "初级工程师",
"summary": "负责产品功能实现"
},
{
"company": "百度",
"startDate": "2014-09",
"endDate": "2017-06",
"title": "初级工程师",
"summary": "负责产品功能实现"
}
],
"projectInfo": [
{
"projectName": "项目1",
"startDate": "2017-01",
"endDate": "2017-11",
"projectDescription": "项目功能描述",
"title": "后端工程师",
"responsibilities": "项目职责"
},
{
"projectName": "项目2",
"startDate": "2017-01",
"endDate": "2017-11",
"projectDescription": "项目功能描述",
"title": "后端工程师",
"responsibilities": "项目职责"
}
],
"practiceInfo": [
{
"company": "腾讯",
"title": "实习工程师",
"startDate": "2017-01",
"endDate": "2017-11",
"summary": "负责简单的功能实现"
},
{
"company": "腾讯",
"title": "实习工程师",
"startDate": "2017-01",
"endDate": "2017-11",
"summary": "负责简单的功能实现"
}
],
"jobIntention": {
"aimSalary": "7000-13000元/月",
"forwardLocation": "北京"
},
"selfDescription": {
"personal": "人经历丰富,在校担任过部长,主持人以及新生教官。"
},
"customFields": [
{
"id": 146,
"value": "22",
"index": 0
},
{
"id": 121,
"value": "22",
"index": 10
},
{
"id": 124,
"value": "bbb",
"index": 0
},
{
"id": 130,
"value": {
"endDate": "2020-01",
"startDate": "2021-01"
},
"index": 0
}
],
"isResignWriteJob": true,
"resignJobName": "工程师",
"resignJobType": "技术"
}
示例代码
返回响应
成功(200)
失败(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
返回码
msg
string
报错信息
data
object
返回数据
applicationId
integer
必需
candidateId
integer
必需
示例
异常示例
{
"code": 40040102,
"msg": "找不到归档原因,归档信息错误"
}
修改于 3 年前