职位
批量同步职位
鉴权方式
HAP 组织授权开放接口为每个组织提供一套独立的密钥信息(AppKey 和 SecretKey),组织可通过此密钥信息安全调用 HAP 平台开放的各类接口,包括人员组织管理、汇报关系管理、应用管理、流程待办等数据接口。
版本
请求地址
Body 参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
appKey | string | 是 | AppKey |
sign | string | 是 | 签名 |
timestamp | integer | 是 | 时间戳 |
projectId | string | 是 | HAP组织Id |
positions | string[] | 是 | 职位列表 |
响应参数
200| 名称 | 类型 | 描述 |
|---|---|---|
code | integer | 状态码,1表示操作完成;非1表示操作异常,非1时data字段不存在 |
message | string | 状态描述 |
data | object[] | 职位信息列表 |
data.position | string | 职位名称 |
data.projectId | string | HAP组织Id |
data.jobId | string | HAP职位Id |
curl -X POST "https://example.com/v2/position/upsertPositions" \ -H "Content-Type: application/json" \ -d '{ "appKey": "string", "sign": "string", "timestamp": 0, "projectId": "string", "positions": [ "string" ] }'{ "code": 0, "message": "string", "data": [ { "position": "string", "projectId": "string", "jobId": "string" } ]}