Modify User Part-time Job
Permissions
The Identity Management API is authorized at the application level. Before calling the API, you need to set API permissions for different applications. For details, please refer to API Permissions.
| Permission Code | Description |
|---|---|
| user_all | Read and write permissions for user management APIs |
| all | Read and write permissions for all APIs |
Request Description
Request Headers
| Parameter Name | Name | Required | Type | Description |
|---|---|---|---|---|
| Authorization | Authorization | Yes | String | Format: Bearer {access_token} |
| Content-Type | Content Type | Yes | String | Fixed value: application/json; charset=utf-8 |
Request Example
json
{
"org_code": "10000",
"position_code": "IDaaS_Java_Developer",
"title_code": "Senior_Engineer"
}TIP
Modifies part-time job information for the user based on the requested user ID.
Request Parameters
| Parameter Name | Name | Required | Type | Description |
|---|---|---|---|---|
| user_id | User ID | Yes | String | ID of the user to modify |
| job_id | Part-time Job ID | Yes | String | ID of the part-time job to modify |
| org_code | Organization Code | Yes | String | Part-time organization code |
| position_code | Position Code | No | String | Concurrent position; if not passed, it will be cleared |
| title_code | Job Title Code | No | String | Concurrent job title; if not passed, it will be cleared |
Response Example
Success Example
HTTP/1.1 200 OK
json
{
"job_id": "20201028102749564-9082-DC8CD2722"
}Error Example
HTTP/1.1 400 Bad Request
json
{
"error_msg": "User does not exist",
"error_code": "USER.0001"
}Response Parameters
| Parameter Name | Name | Type | Description |
|---|---|---|---|
| job_id | Job ID | String |
Error Codes
| Status Code | Error Code | Chinese Error Message | English Error Message | Resolution |
|---|---|---|---|---|
| 400 | ENT.CONFIG.0031 | 任职管理功能未开启,请先开启此功能 | The job management function is not enabled, please enable this function first | Please enable job management in the Enterprise Center first |
| 400 | ORG.0001 | 组织不存在 | Organization does not exist | Please check whether the corresponding organization exists |
| 400 | JOB.POSITION.0001 | 职位不存在 | Position does not exist | Please check whether the corresponding position exists |
| 400 | JOB.TITLE.0001 | 职务不存在 | Job title does not exist | Please check whether the corresponding job title exists |
| 400 | USER.0001 | 用户不存在 | User does not exist | Please check whether the corresponding user exists |
| 400 | USER.0093 | 用户任职信息不存在 | The user's employment information does not exist | Please check whether the corresponding job exists |
| 400 | USER.0094 | 用户任职信息中的组织不能为空 | The organization in the user's employment information cannot be empty | Please fill in the organization in the job information |
| 400 | USER.0095 | 用户任职信息中的职位不能为空 | The position in the user's employment information cannot be empty | Please fill in the position in the job information |
| 400 | USER.0096 | 用户任职信息中的职务不能为空 | The job title in the user's employment information cannot be empty | Please fill in the job title in the job information |
| 400 | USER.0097 | 用户任职信息中的职位不在所选组织下 | Please check whether the position in the job information is under the corresponding organization |