Skip to content

Commit 3144238

Browse files
authored
Merge pull request #3628 from OpenNeuroOrg/docs/api-4.39.0-update
docs: Update API docs for 4.39.0
2 parents 2c914a7 + 5099e61 commit 3144238

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/api.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ This will return a listing of files at the top level of the dataset.
128128
"annexed": false
129129
},
130130
{
131-
"id": "10834f1acb4897eaed5b29fc642718451100721b",
132-
"key": null,
131+
"id": "1882d325538b14729e3c715d8ccf1aede77a6143",
132+
"key": "db72baeb3665a309db35d6ef649e117eb45a8a87",
133133
"filename": "sub-01",
134134
"size": 0,
135135
"directory": true,
@@ -141,12 +141,12 @@ This will return a listing of files at the top level of the dataset.
141141
}
142142
```
143143

144-
In this example, you can see that sub-01 has the `"directory": true`. This means the directory `id` field can be used to retrieve additional trees.
144+
In this example, you can see that sub-01 has the `"directory": true`. This means the directory `key` field can be used to retrieve additional trees.
145145

146146
```graphql
147147
query snapshotFiles {
148148
snapshot(datasetId: "ds000001", tag: "1.0.0") {
149-
files(tree: "10834f1acb4897eaed5b29fc642718451100721b") {
149+
files(tree: "db72baeb3665a309db35d6ef649e117eb45a8a87") {
150150
id
151151
key
152152
filename
@@ -166,16 +166,16 @@ This will return any files below sub-01 in the tree for this version.
166166
"snapshot": {
167167
"files": [
168168
{
169-
"id": "c63eeb1e0f41fea629f34269025f9d8225a2f3ff",
170-
"key": null,
169+
"id": "1156b949676f8afcbded143b695ebaa1d18027f1",
170+
"key": "26d2ff4f763308d462f151c53e3e06f6b7d2aaaa",
171171
"filename": "anat",
172172
"size": 0,
173173
"directory": true,
174174
"annexed": false
175175
},
176176
{
177-
"id": "309cd8eae8896096c8734b024ac52be4743c9f44",
178-
"key": null,
177+
"id": "5e262c7c950f44a21f44a096f07e6727c8c747af",
178+
"key": "4113b1609e2b0ea2e0a04e0800204d2ee6aab578",
179179
"filename": "func",
180180
"size": 0,
181181
"directory": true,

0 commit comments

Comments
 (0)