Update a selection

Request

Add or remove entities from a selection.

Note
This request can contain multiple commands and is used both to add and to remove entities from a selection using the PATCH object.

Security
OAuth2.0
Query
loadPermissionsboolean

Return updated permissions in response

Default:false
Bodyapplication/jsonrequired
selectionPoolstringrequired
definitionNamestringrequired
patchesArray of objects(PatchOperation)required
subPoolIdinteger, (int64)
curl -i -X PATCH \
  'https://your-server/api/selection?loadPermissions=false' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "selectionPool": "string",
    "definitionName": "string",
    "subPoolId": 0,
    "patches": [
      {
        "operation": "Add",
        "value": [
          0
        ]
      }
    ]
  }'

Responses

Selection updated with permissions

Bodyapplication/json
itemsArray of integers
permissionsArray of strings
Response
{ "items": [ 0 ], "permissions": [ "string" ], "link": { "href": "string", "type": "string" } }