Employee Identity (EIAM)

Update Application Organization

API

# Permissions

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

Permission Code Description
app_org_all Read and write permission for application organization management API
all Read and write permission for all APIs

# Request Description

PUT https://{your_domain}/api/v2/tenant/applications/{app_id}/organizations/{app_org_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

{
    "name": "Virtual Organization 2",
    "parent_id": ""
}
1
2
3
4

# Request Parameters

Parameter Name Chinese Name Required Type Description
app_id Application ID Yes String Target Application ID
app_org_id Application Organization ID Yes String Target Application Organization ID
name Application Organization Name No String
parent_id Parent Node ID No String

# Response Example

Correct Example:
HTTP/1.1 200 OK
{
    "org_id": "20220414151855146-A153-62C1A994C"
}


Error Example:
HTTP/1.1 400 Bad Request
{
    "error_code": " APP.ORG.0040,
    "error_msg": "父机构不存在"
}
1
2
3
4
5
6
7
8
9
10
11
12
13

# Response Parameters

Parameter Name Chinese Name Type Description
org_id Application Organization ID String

# Error Codes

Status Code Error Code Error Message Handling Measure
400 APP.ORG.0040 父机构不存在 请检查父机构是否已被删除
The parent application organization does not exist
400 APP.0001 应用不存在 请检查应用是否已被删除
App does not exist
400 APP.ORG.0024 应用机构不存在 请检查应用机构是否已被删除
The application organization does not exist
400 APP.ORG.0041 只能修改创建的虚拟组织 请修改虚拟组织
Only created virtual organizations can be modified
400 APP.ORG.0025 父机构不能指向自己 请修改父机构为其它机构
The parent organization cannot point to itself

I'm ready to proceed. Please paste the Markdown content you need translated.