HTTP请求
GET https://api.mokahr.com/api-platform/v1/headcounts
请求URL参数
字段 | 类型 | 描述 |
---|---|---|
currentHireMode | integer | 招聘模式 |
status | string | 状态 |
pageNumber | intger | 页签,表示获取第几页的数据(每页返回20条数据) |
返回
返回body的JSON数据如下:
字段 | 类型 | 描述 |
---|---|---|
id | integer | hc的id |
number | string | hc编号 |
jobName | string | hc名称 |
type | string | 需求类型 |
needNumber | integer | 需求人数 |
departmentId | integer | 部门id |
commitment | string | 职位属性,可选值: |
ownerId | integer | 汇报对象id |
managerIds | array | 负责人id数组 |
managerEmails | array | 负责人邮箱数组 |
managerEmployeeIds | array | 负责人工号数组 |
description | string | 需求描述 |
status | string | 进行状态 |
creatorId | integer | hc创建者id |
hireMode | integer | 招聘模式 |
orgId | string | 公司id |
createAt | string | 创建时间。日期格式为:ISO8601 |
updateAt | string | 更新时间。日期格式为:ISO8601 |
startData | string | 开始时间。日期格式为:ISO8601 |
completeDate | string | 结束时间。日期格式为:ISO8601 |
connectedJobIds | array | 关联职位的id |
connectedJobs | array | 关联职位的详情 |
usedNumber | integer | 已使用人数 |
remainNumber | integer | 剩余人数 |
departmentCode | string | 部门同步时使用的code |
addressInfo | array | 地点信息 |
jobPriority | array | 职位优先级信息 |
jobRanks | array | 职位级别 |
请求样例
$ curl https://api.mokahr.com/api-platform/v1/headcounts\?currentHireMode\=1\&status\=complete&pageNumber=1 \
-u 'your-api_key:' \
-X GET
2
3
返回样例
{ "headcount": { "id": 1, "number": "AoTeMan001", "jobName": "野生奥特曼", "type": "planned", "needNumber": 5, "departmentId": 1, "commitment": "fulltime", "ownerId": 1, "description": null, "managerIds": [2], "managerEmails": ["hr@trymoka.com"], "managerEmployeeIds": ["0018"], "status": "complete", "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, "departmentCode": "7", "addressInfo": [ { "id": 1, "country": "中国", "province": "北京市", "area": "海淀区", "address": "北京市海淀区海淀西大街" } ], "jobPriority": [ { "id": 1, "name": "优先招聘", "isBuiltin": 1 } ], "jobRanks": [ { "id": 1, "name": "新人", "type": "p5", "level": 1, "hcId": 8 }, { "id": 3, "name": "总裁", "type": null, "level": 3, "hcId": 8 } ] } }