Skip to main content
POST
/
user
/
collection
/
{id}
/
files
List files within a collection
curl --request POST \
  --url https://pria.praxislxp.com/user/collection/{id}/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "lean": true,
  "compact": true,
  "page": 123,
  "pageSize": 123,
  "fileNameSearch": "<string>",
  "nameOrder": true,
  "sortAscending": true,
  "sortBy": "<string>"
}
'
{
  "success": true,
  "data": [
    {}
  ],
  "childCollections": [
    {
      "_id": "<string>",
      "name": "<string>",
      "user": "<string>",
      "institution": "<string>",
      "account_shared": true,
      "parent": "<string>",
      "created": "2023-11-07T05:31:56Z",
      "_type": "collection",
      "fileCount": 123,
      "totalSize": 123,
      "includedCount": 123,
      "excludedCount": 123,
      "subCollectionCount": 123,
      "previewFiles": [
        "<string>"
      ]
    }
  ],
  "total": 123,
  "hasMore": true,
  "page": 123,
  "pageSize": 123
}

Authorizations

Authorization
string
header
required

JWT token passed in authorization header

Path Parameters

id
string
required

Body

application/json
lean
boolean
compact
boolean
page
integer
pageSize
integer
nameOrder
boolean
sortAscending
boolean
sortBy
string

Response

200 - application/json

Paginated list of files in the collection, plus child sub-collections

success
boolean
data
object[]
childCollections
object[]

Direct child sub-collections with stats

total
integer
hasMore
boolean
page
integer
pageSize
integer