Okta Identity Governance
/Management APIs
/- Add the resources to a collection
Create a resource collection
List all resource collections
Retrieve a resource collection
Replace a resource collection
Delete a collection
List all collection resources
Delete a collection resource
Retrieve a collection resource
Replace a collection resource
Retrieve the unassigned users
List all assignments for a collection
Assign a collection to principals
Update a principal assignment
Delete a principal assignment
List all assignments for all collections
Add the resources to a co...
Adds the resources to a collection
Note: This endpoint is deprecated. Use addResourcesToCollectionV2 instead.
Array []
The ORN identifier for a specific app. Other resource types aren't supported.
See the supported-resources endpoint for reference.
- https://subdomain.okta.comhttps://subdomain.okta.com/governance/api/v1/collections/{collectionId}/resources
curl -i -X POST \
'https://subdomain.okta.com/governance/api/v1/collections/{collectionId}/resources' \
-H 'Content-Type: application/json' \
-d '[
{
"resourceOrn": "orn:okta:idp:00ofsdghasfhas54wewe:apps:salesforce:0oafxqCAJWWGELFTYASJ",
"entitlements": [
{
"id": "espo3v6xlwdtEX2il1d6",
"values": [
{
"id": "ento3v6xmkviXCltm1d6"
}
]
},
{
"id": "esp4rg7fkom0c3AsX8g6",
"values": [
{
"id": "ent4rg7fltWSgrlDT8g6"
}
]
}
]
},
{
"resourceOrn": "orn:okta:idp:00o11edPwGqbUrsDm0g4:apps:google:0oafxqDFHASFGZGSERDHA"
},
{
"resourceOrn": "orn:okta:idp:0034t89uq4u0q54u80q2:apps:netsuite:0oasdSD~GAVXCBZSDFG",
"entitlements": [
{
"id": "espo3v6xlwdtEX2il1d6",
"values": [
{
"id": "ento3v6xmkviXCltm1d6"
},
{
"id": "ento3v6xk6nOq7lm51d6"
}
]
},
{
"id": "esp4rg7fkom0c3AsX8g6",
"values": [
{
"id": "ent4rg7fltWSgrlDT8g6"
}
]
}
]
}
]'A successful add resources to collection list response
Link relations available using the JSON Hypertext Application Language
Response
List of resources in a collection
{ "data": [ { … }, { … }, { … } ], "_links": { "next": { … }, "self": { … } }, "metadata": { "count": 3 } }