HTTP请求
GET https://api.mokahr.com/api-platform/v1/headcount/{hcId}
请求URL参数
字段 | 类型 | 描述 |
---|---|---|
hcId | integer | hc的id |
返回
返回body的JSON数据如下:
字段 | 类型 | 描述 |
---|---|---|
id | integer | hc的id |
number | string | hc编号 |
jobName | string | hc名称 |
type | string | 需求类型 |
needNumber | integer | 需求人数 |
departmentId | integer | 部门id |
commitment | string | 职位属性 |
ownerId | integer | 汇报对象id |
ownerEmail | string | 汇报对象邮箱 |
ownerEmployeeId | string | 汇报对象工号 |
managerIds | array | 负责人id数组 |
managerEmails | array | 负责人邮箱数组 |
managerEmployeeIds | array | 负责人工号数组 |
description | string | 需求描述 |
status | string | 进行状态 |
creatorId | integer | hc创建者id |
creatorEmail | String | hc创建者email |
hireMode | integer | 招聘模式 |
orgId | string | 公司id |
createdAt | string | 创建时间 |
updatedAt | string | 更新时间 |
startDate | string | 开始时间 "2022-03-11" |
completeDate | string | 结束时间 |
connectedJobIds | array | 关联职位的id |
connectedJobs | array | 关联职位的详情 |
usedNumber | integer | 已使用人数 |
remainNumber | integer | 剩余人数 |
customData | object | 自定义字段的值 |
departmentCode | string | 部门同步时使用的code |
addressInfo | array | 地点信息 |
jobPriority | array | 职位优先级信息 |
jobRanks | array | 职位级别 |
minSalary | integer | 最低薪资,单位:千(K) |
maxSalary | integer | 最高薪资,单位:千(K) |
education | string | 学历要求,取值范围: |
allCount | integer | offer发放总数 |
sendCount | integer | 待接受offer总数 |
rejectedCount | integer | 已拒绝offer总数 |
pendingCheckin | integer | 待入职(offer发放且候选人接受且候选人状态为待入职) |
realCompleteDate | string | 需求实际完成时间 |
approvalStatus | integer | 招聘需求审批状态 0,未发起;1,审批中;3,已驳回;4,已撤回; |
isGlobal | integer | 是否同时使用社校招 |
请求样例
$ curl https://api.mokahr.com/api-platform/v1/headcount/10 \
-u 'your-api_key:' \
-X GET
2
3
返回样例
{ "headcount": { "id": 1, "number": "AoTeMan001", "jobName": "野生奥特曼", "type": "planned", "needNumber": 5, "departmentId": 1, "departmentCode": "7", "commitment": "fulltime", "ownerId": 1, "managerIds": [2], "description": null, "status": "unstart", "creatorId": 7, "hireMode": 1, "orgId": "livingsimple", "createdAt": "2018-01-09T10:37:32.000Z", "updatedAt": "2018-01-09T10:37:32.000Z", "startDate": null, "completeDate": null, "connectedJobIds": [], "connectedJobs": [], "usedNumber": 0, "remainNumber": 5, "customData": { "1": "123", "2": "222" }, "ownerEmail": "hr@test.moka", "managerEmails": ["guoxing123@trymoka.com"], "managerEmployeeIds": ["0019"], "departmentCode": "7", "addressInfo": [ { "id": 1, "country": "中国", "province": "北京市", "area": "海淀区", "address": "北京市海淀区海淀西大街" } ], "jobPriority": [ { "id": 14, "name": "123", "isBuiltin": 0 } ], "jobRanks": [ { "id": 1, "name": "新人", "type": "p5", "level": 1, "hcId": 8 }, { "id": 3, "name": "总裁", "type": null, "level": 3, "hcId": 8 } ] } }