Get the children of the specified repository item

get/repository/items/{itemId}/children
Internal-Use Only

Returns the children of the specified repository item. Authorization: Requires read permission on the parent and children.

Request Samples

1

Response Samples

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

Path Parameters

NameTypeRequiredDescription
itemId
string
true

The unique identifier for the repository item.

Examples:
"d6eefec9-dcc2-4574-8af8-69897038d9c5"

Query Parameters

NameTypeRequiredDescription
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.

Example:
"eq(name,'reports')"
limit
integer
false

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

Examples:
10
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.

Example:
"name:ascending:primary"
start
integer
false

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

Examples:
10

Responses

StatusMeaningDescription
200OKOKSchema
404Not FoundNot found - the repository parent item could not be found.