Get the collection of repository items

get/repository/items

Returns the collection of repository items by query.

Authorization: Requires read permission on all items that are returned.

Request Samples

1

Response Samples

1{
2 "value": {
3 "links": [
4 {
5 "method": "GET",
6 "rel": "self",
7 "href": "/clinicalRepository/repository/items?filter=and(like(name,'test*'),like(location,'/Sarah%20BU'))&sortBy=name:ascending:primary,name:descending:secondary&start=0&limit=100",
8 "uri": "/clinicalRepository/repository/items?filter=and(like(name,'test*'),like(location,'/Sarah%20BU'))&sortBy=name:ascending:primary,name:descending:secondary&start=0&limit=100",
9 "type": "application/vnd.sas.collection",
10 "itemType": "application/vnd.sas.clinical.repository.item+json"
11 },
12 {
13 "method": "GET",
14 "rel": "collection",
15 "href": "/clinicalRepository/repository/items",
16 "uri": "/clinicalRepository/repository/items",
17 "type": "application/vnd.sas.collection",
18 "itemType": "application/vnd.sas.clinical.repository.item+json"
19 }
20 ],
21 "name": "items",
22 "accept": "application/vnd.sas.clinical.repository.item+json",
23 "start": 0,
24 "count": 10,
25 "items": [
26 {
27 "version": 1,
28 "createdBy": "sastest1",
29 "creationTimeStamp": "2023-09-19T19:14:39Z",
30 "modifiedBy": "sastest1",
31 "modifiedTimeStamp": "2023-09-19T19:15:34Z",
32 "id": "031ed8d9-f188-4d8f-ad74-ef917d0bec31",
33 "typeId": "folder",
34 "createdByDisplayName": "SAS Test User 1 (sastest1)",
35 "modifiedByDisplayName": "SAS Test User 1 (sastest1)",
36 "primaryType": "FOLDER",
37 "name": "TestData",
38 "location": "/Sarah BU",
39 "path": "/Sarah BU/TestData",
40 "size": 32768,
41 "propertiesModifiedTimeStamp": "2023-09-19T19:14:39Z",
42 "propertiesModifiedBy": "sastest1",
43 "propertiesModifiedByDisplayName": "SAS Test User 1 (sastest1)",
44 "state": "ACTIVE",
45 "owner": "sastest1",
46 "ownerDisplayName": "SAS Test User 1 (sastest1)",
47 "defaultOwner": "sastest1",
48 "defaultOwnerDisplayName": "SAS Test User 1 (sastest1)"
49 },
50 {
51 "version": 1,
52 "createdBy": "sastest1",
53 "creationTimeStamp": "2023-09-19T19:14:57Z",
54 "modifiedBy": "sastest1",
55 "modifiedTimeStamp": "2023-09-19T19:17:04Z",
56 "id": "01f15a4c-06db-4bcc-b999-09bf99e8ae0b",
57 "typeId": "folder",
58 "createdByDisplayName": "SAS Test User 1 (sastest1)",
59 "modifiedByDisplayName": "SAS Test User 1 (sastest1)",
60 "primaryType": "FOLDER",
61 "name": "TestDocuments",
62 "location": "/Sarah BU",
63 "path": "/Sarah BU/TestDocuments",
64 "size": 1385,
65 "propertiesModifiedTimeStamp": "2023-09-19T19:14:57Z",
66 "propertiesModifiedBy": "sastest1",
67 "propertiesModifiedByDisplayName": "SAS Test User 1 (sastest1)",
68 "state": "ACTIVE",
69 "owner": "sastest1",
70 "ownerDisplayName": "SAS Test User 1 (sastest1)",
71 "defaultOwner": "sastest1",
72 "defaultOwnerDisplayName": "SAS Test User 1 (sastest1)"
73 }
74 ],
75 "limit": 2,
76 "version": 2
77 }
78}

Query Parameters

NameTypeRequiredDescription
filter
string<filter-criteria>
false

Filter criteria for items. The following fields are not supported in filter criteria: children, contentType, and digest. See Filtering in REST APIs.

limit
integer
false

The maximum number of items to return. Defaults to 10. The maximum cannot exceed 500.

sortBy
string<sort-criteria>
false

Sorts the returned items. The following fields are not supported for sort: children, contentType, and digest. See Sorting in REST APIs.

start
integer
false

0-based offset of the first type to return. Defaults to 0.

Responses

StatusMeaningDescription
200OK

OK

Schema