Employee Identity (EIAM)

Delete User Part-Time Job

API

# Permissions

The Identity Management API is authorized on an 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-write permission for user management APIs
all Read-write permission for all APIs

# Request Specification

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

# Request Headers

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

None

Deletes the user's part-time job information based on the provided user ID parameter.

# Request Parameters

Parameter Name Chinese Name Required Type Description
user_id User ID Yes String The ID of the user to be modified
job_id Part-Time Job ID Yes String The ID of the part-time job to be modified

# Response Example

Success Example:
HTTP/1.1 204 No Content

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

# Response Parameters

None

# Error Codes

Status Code Error Code Error Message Handling Measure
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 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

I understand. Please provide the Markdown content you need translated. I will follow all the rules you have outlined.