Employee Identity (EIAM)

Modify User's Part-time/Concurrent Position

API

# Permissions

The Identity Management API is authorized by application dimension. 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 Specification

PUT https://{your_domain}/api/v2/tenant/users/{user_id}/part-time-job/{job_id}

# Request Headers

Parameter Chinese 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

{
    "org_code": "10000",
    "position_code": "IDaaS_Java_Developer",
    "title_code": "Senior_Engineer"
}
1
2
3
4
5

Modify the user's part-time/concurrent position information based on the user ID parameter in the request.

# Request Parameters

Parameter Chinese Name Required Type Description
user_id User ID Yes String The user ID to be modified
job_id Part-time/Concurrent Position ID Yes String The part-time/concurrent position ID to be modified
org_code Organization Code Yes String Part-time organization code
position_code Position Code No String Concurrent position; if this parameter is not passed, it will be cleared
title_code Title Code No String Concurrent title; if this parameter is not passed, it will be cleared

# Response Example

Success Example:
HTTP/1.1 200 OK
Content-Type: application/json
{
  "job_id": "20201028102749564-9082-DC8CD2722"
}

Error Example:
HTTP/1.1 400 Bad Request
{
  "error_msg": "User does not exist",
  "error_code": "USER.0001"
}
1
2
3
4
5
6
7
8
9
10
11
12
13

# Response Parameters

Parameter Name Chinese Name Type Description
job_id Job ID String

# Error Codes

Status Code Error Code Error Message Handling
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
The job management function is not enabled, please enable this function first
400 ORG.0001 Organization does not exist Please check if the corresponding organization exists
Organization does not exist
400 JOB.POSITION.0001 Position does not exist Please check if the corresponding position exists
Position does not exist
400 JOB.TITLE.0001 Job title does not exist Please check if the corresponding job title exists
Job title does not exist
400 USER.0001 User does not exist Please check if the corresponding user exists
User does not exist
400 USER.0093 The user's employment information does not exist Please check if the corresponding position exists
The user's employment information does not exist
400 USER.0094 The organization in the user's employment information cannot be empty Please fill in the organization in the position information
The organization in the user's employment information cannot be empty
400 USER.0095 The position in the user's employment information cannot be empty Please fill in the position in the position information
The position in the user's employment information cannot be empty
400 USER.0096 The job title in the user's employment information cannot be empty Please fill in the job title in the position information
The job title in the user's employment information cannot be empty
400 USER.0097 The position in the user's employment information is not under the selected organization Please check if the position in the position information is under the corresponding organization

Please provide the Markdown content you need translated.