Creates a selection using one of the following modes:
- Mode 1 Direct Entity IDs - use this mode when you know the specific entity IDs to add.
- Mode 2 Query-Based Selection - use this mode to select entities based on search criteria. The system executes the query and adds matching entities.
Query types are case-insensitive (for example, BASIC, basic, Basic). You can create queries that include various parameters.
Note
If
values is provided and non-empty, it takes precedence and query is ignored.Security
OAuth2.0
- https://your-serverhttps://your-server/api/selection
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- Direct entity IDs
- Query-based selection
curl -i -X POST \
https://your-server/api/selection \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"values": [
1234,
5678,
9012
],
"selectionPool": "AssetSelectionPool",
"definitionName": "M.Asset",
"subPoolId": 123,
"ignorePermissions": false
}'Response
{ "items": [ 0 ], "permissions": [ "string" ], "link": { "href": "string", "type": "string" } }