Employee Identity (EIAM)

Save Organization Leader Interface

Interface

# Permissions {/permissions/}

The Identity Management API is authorized at the application level. Before calling the interface, you need to set interface permissions for different applications. For details, please refer to API Permissions.

Permission Code Description
org_all Read and write permissions for organization management interfaces
all Read and write permissions for all interfaces

# Request Specification {/request-specification/}

PUT https://{your_domain}/api/v2/tenant/organizations/{org_id}/org-leader?leader_id=xxx

# Request Headers {/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 {/request-example/}

None

# Request Parameters {/request-parameters/}

Parameter Name Chinese Name Required Type Description
org_id Organization ID Yes String
leader_id User ID Yes String

# Response Example

Success Example:
HTTP/1.1 200 OK
Content-Type: application/json
{
	"result": true
}

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

# Response Parameters

Parameter Name Chinese Name Type Description
result true boolean Successfully set the organization's person in charge

# Error Codes

Status Code Error Code Error Message Handling Measures
400 USER.0001 User does not exist Please check if the user ID in the input parameters is correct
User does not exist
400 USER.0004 User is disabled Please check if the person-in-charge user is disabled
User is disabled
400 ORG.0001 Organization does not exist Please check if the organization ID in the input parameters is correct
Organization does not exist

Okay, input the Markdown. I will only return the translated text.