Associate Resource to Organization Structure Node¶
Associate a resource to a specified organization structure node.
Request Format¶
POST https://{apigw-address}/app-portal-service/v2.3/structure/resource/associate
Request Parameters (Query)¶
Name |
Mandatory/Optional |
Data Type |
Description |
---|---|---|---|
orgId |
Mandatory |
String |
OU ID. |
Request Parameters (Body)¶
Name |
Mandatory/Optional |
Data Type |
Description |
---|---|---|---|
structureId |
Mandatory |
String |
Organization Structure ID. |
resourceIDs |
Optional |
Array |
Resource ID. |
Response Parameters¶
Name |
Data Type |
Description |
---|---|---|
data |
Data Struct |
The result of associating resources. |
Data Struct¶
Name |
Data Type |
Description |
---|---|---|
success |
Boolean |
The result of associating resources, true for success, and false for failure. |
Error Codes¶
Error Code |
Description |
---|---|
31400 |
Required parameters are missing. |
31403 |
The organization structure is not assigned to the application. |
31404 |
the node or resources do not exist, or the OU does not acquire the application. |
31405 |
The node has been associated to another node in the organization structure. |
Samples¶
Request Sample¶
url: /app-portal-service/v2.3/structure/resource/associate?orgId=your_org_ID
method: POST
{
"structureId": "your_structure_ID",
"resourceIds": ["your_resource_id_1", "your_resource_id_2"]
}
Return Sample¶
{
"code": 0,
"message": "",
"data": {
"success":true
}
}