Get the children of the specified repository item

get/repository/items/{itemId}/children

Returns the children of the specified repository item.

Authorization: Requires read permission on the parent and children.

Request Samples

1

Response Samples

1{
2 "value": {
3 "links": [
4 {
5 "method": "GET",
6 "rel": "self",
7 "href": "/clinicalRepository/repository/items/cac68a83-2f9b-4e45-859f-1163581edf1e/children?sortBy=name:ascending:primary,name:descending:secondary&start=0&limit=100",
8 "uri": "/clinicalRepository/repository/items/cac68a83-2f9b-4e45-859f-1163581edf1e/children?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/cac68a83-2f9b-4e45-859f-1163581edf1e/children",
16 "uri": "/clinicalRepository/repository/items/cac68a83-2f9b-4e45-859f-1163581edf1e/children",
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": 4,
25 "items": [
26 {
27 "version": 1,
28 "createdBy": "sastest1",
29 "creationTimeStamp": "2023-09-15T15:41:22Z",
30 "modifiedBy": "sastest1",
31 "modifiedTimeStamp": "2023-09-17T18:08:16Z",
32 "id": "16edf3c1-b383-4649-9e34-8e153b111f1a",
33 "typeId": "folder",
34 "createdByDisplayName": "SAS Test User 1 (sastest1)",
35 "modifiedByDisplayName": "SAS Test User 1 (sastest1)",
36 "primaryType": "FOLDER",
37 "name": "folder1",
38 "location": "/BU2",
39 "path": "/BU2/folder1",
40 "size": 1420,
41 "propertiesModifiedTimeStamp": "2023-09-15T15:41:22Z",
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-13T13:35:34Z",
54 "modifiedBy": "sastest1",
55 "modifiedTimeStamp": "2023-09-13T15:01:35Z",
56 "id": "4437483c-dc7f-4512-986e-cde49d97d507",
57 "typeId": "therapeuticarea",
58 "createdByDisplayName": "SAS Test User 1 (sastest1)",
59 "modifiedByDisplayName": "SAS Test User 1 (sastest1)",
60 "primaryType": "CONTEXT",
61 "name": "ta1",
62 "location": "/BU2",
63 "path": "/BU2/ta1",
64 "size": 5120000,
65 "propertiesModifiedTimeStamp": "2023-09-13T13:35:34Z",
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 "version": 1,
76 "createdBy": "sastest1",
77 "creationTimeStamp": "2023-09-19T19:01:21Z",
78 "modifiedBy": "sastest1",
79 "modifiedTimeStamp": "2023-09-19T19:01:21Z",
80 "id": "6258036d-2d2a-4fb6-99a1-f1770d9c9784",
81 "typeId": "sasdataset",
82 "createdByDisplayName": "SAS Test User 1 (sastest1)",
83 "modifiedByDisplayName": "SAS Test User 1 (sastest1)",
84 "primaryType": "FILE",
85 "name": "testdata.sas7bdat",
86 "location": "/BU",
87 "path": "/BU/testdata.sas7bdat",
88 "size": 196608,
89 "propertiesModifiedTimeStamp": "2023-09-19T19:01:21Z",
90 "propertiesModifiedBy": "sastest1",
91 "propertiesModifiedByDisplayName": "SAS Test User 1 (sastest1)",
92 "state": "ACTIVE",
93 "owner": "sastest1",
94 "ownerDisplayName": "SAS Test User 1 (sastest1)",
95 "contentType": "application/x-sas-data",
96 "locked": false,
97 "digest": "0D9ADE3E0280E904037804556B299C13",
98 "signingStatus": "NONE",
99 "versioned": true,
100 "fileVersion": "2.0",
101 "fileSize": 0
102 },
103 {
104 "version": 1,
105 "createdBy": "sastest1",
106 "creationTimeStamp": "2023-09-17T18:16:52Z",
107 "modifiedBy": "sastest1",
108 "modifiedTimeStamp": "2023-09-17T18:16:52Z",
109 "id": "0f367366-3d6a-4157-8f61-2082e289d810",
110 "typeId": "file",
111 "createdByDisplayName": "SAS Test User 1 (sastest1)",
112 "modifiedByDisplayName": "SAS Test User 1 (sastest1)",
113 "primaryType": "FILE",
114 "name": "file1",
115 "location": "/BU",
116 "path": "/BU/file1",
117 "size": 21,
118 "propertiesModifiedTimeStamp": "2023-09-17T18:16:52Z",
119 "propertiesModifiedBy": "sastest1",
120 "propertiesModifiedByDisplayName": "SAS Test User 1 (sastest1)",
121 "state": "ACTIVE",
122 "owner": "sastest1",
123 "ownerDisplayName": "SAS Test User 1 (sastest1)",
124 "contentType": "application/octet-stream",
125 "locked": false,
126 "digest": "0D9ADE3E0280E904037804556B299C13",
127 "signingStatus": "NONE",
128 "versioned": false,
129 "fileVersion": "-",
130 "fileSize": 0
131 }
132 ],
133 "limit": 100,
134 "version": 2
135 }
136}

Path Parameters

NameTypeRequiredDescription
itemId
string
true

The unique identifier for the repository item.

Query Parameters

NameTypeRequiredDescription
includeSynchronizationInfo
boolean
false

Whether to include synchronization information for files that are returned. Default is false.

recurse
boolean
false

When true, items are returned for the specified itemId and all subfolders. Default is false.

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
404Not Found

Not found - the repository parent item could not be found.