Employee Identity (EIAM)
Enable Organization
API
# Permissions
The Identity Management APIs are authorized at the application level. Before calling the APIs, you need to set API permissions for different applications. For details, please refer to API Permissions.
| Permission Code | Description |
|---|---|
| org_all | Read and write permissions for organization management APIs |
| all | Read and write permissions for all APIs |
# Request Description
PUT https://{your_domain}/api/v2/tenant/organizations/{org_id}/enable
# 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 Body Example
None
# Request Parameters
| Parameter Name | Chinese Name | Required | Type | Description |
|---|---|---|---|---|
| org_id | Organization ID | Yes | String | Organization ID |
# Return Example
Success Example:
HTTP/1.1 200 OK
Content-Type: application/json
{
"org_id": "20220412142914549-1E50-B49C521A4"
}
Error Example:
HTTP/1.1 400 Bad Request
{
"error_code": "ORG.0001",
"error_msg": "Organization does not exist"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
# Return Parameters
| Parameter Name | Chinese Name | Type | Description |
|---|---|---|---|
| org_id | Organization ID | String | System-generated |
# Error Codes
| Status Code | Error Code | Error Message | Action |
|---|---|---|---|
| 400 | ORG.0001 | Organization does not exist | Please check if the organization exists |
