curl --request POST \
--url https://pria.praxislxp.com/api/user/collections/select-all-ids \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"parent": "<string>",
"institution": "<string>",
"fileNameSearch": "<string>"
}
'{
"success": true,
"files": [
{
"_id": "<string>",
"originalname": "<string>"
}
],
"collections": [
{
"_id": "<string>",
"name": "<string>",
"fileCount": 123
}
],
"fileIds": [
"<string>"
],
"collectionIds": [
"<string>"
],
"totalFiles": 123,
"filtered": true
}Get all file and collection IDs for bulk select-all
Returns all file IDs and collection IDs matching the current scope (vault root or inside a collection), honoring the active filters from the UI (file-name search, status filter). When any filter is active, collections are NOT returned — selecting a whole collection would pull in non-matching files inside it, which is unsafe for bulk delete.
curl --request POST \
--url https://pria.praxislxp.com/api/user/collections/select-all-ids \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"parent": "<string>",
"institution": "<string>",
"fileNameSearch": "<string>"
}
'{
"success": true,
"files": [
{
"_id": "<string>",
"originalname": "<string>"
}
],
"collections": [
{
"_id": "<string>",
"name": "<string>",
"fileCount": 123
}
],
"fileIds": [
"<string>"
],
"collectionIds": [
"<string>"
],
"totalFiles": 123,
"filtered": true
}Authorizations
JWT token passed in authorization header
Body
Vault scope (required at root level)
personal, instance, account Collection ID to scope within (null for vault root)
Override institution ID
Case-insensitive substring filter on file originalname
Filter files by status. 'excluded' means $nin [selected, deleted].
active, inactive, selected, error, deleted, excluded Response
Selection IDs and names
Files that will be selected (id + name preview)
Show child attributes
Show child attributes
Collections that will be selected (empty when a filter is active)
Show child attributes
Show child attributes
Legacy bare-id list (mirrors files[]._id)
Legacy bare-id list (mirrors collections[]._id)
True when a fileNameSearch or status filter scoped the result
Was this page helpful?