Associate Resource to Organization Structure Node¶
Associate resources to a specified organization structure node.
Request Format¶
POST https://{apigw-address}/app-portal-service/v2.3/structure/resource/associate
Request Parameters (URI)¶
Name |
Location (Path/Query) |
Required/Optional |
Data Type |
Description |
---|---|---|---|---|
orgId |
Query |
Required |
String |
OU ID. How to get orgId >> |
Request Parameters (Body)¶
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
structureId |
Required |
String |
The node ID in the organization structure. |
resourceIDs |
Optional |
Array |
The list of resource IDs. |
Response Parameters¶
Name |
Data Type |
Description |
---|---|---|
success |
Boolean |
Whether the resource is successfully associated. |
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 resource 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
}
}