Skip to content

Commit 4c7b190

Browse files
committed
corrected an error in the guide. #11987
1 parent aa84df1 commit 4c7b190

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

doc/sphinx-guides/source/api/native-api.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,9 +1316,11 @@ The following convenience API shows the dynamic values of the *remaining* storag
13161316
curl -H "X-Dataverse-key: $API_TOKEN" "http://localhost:8080/api/datasets/$dataset-id/uploadlimits"
13171317
{
13181318
"status": "OK",
1319-
"uploadLimits": {
1320-
"numberOfFilesRemaining": 20,
1321-
"storageQuotaRemaining": 1048576
1319+
"data": {
1320+
"uploadLimits": {
1321+
"numberOfFilesRemaining": 20,
1322+
"storageQuotaRemaining": 1048576
1323+
}
13221324
}
13231325
}
13241326
@@ -1328,7 +1330,9 @@ Or, when neither limit is present:
13281330
13291331
{
13301332
"status": "OK",
1331-
"uploadLimits": {}
1333+
"data": {
1334+
"uploadLimits": {}
1335+
}
13321336
}
13331337
13341338
This API requires the Edit permission on the dataset.

0 commit comments

Comments
 (0)