Skip to content

Commit 4bc1bd0

Browse files
fenekkutmorrell
authored andcommitted
fix: correct the /install/explore inputs
1 parent a9e4943 commit 4bc1bd0

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

docs/install/explore.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ curl -k -XPOST -H "Content-Type: application/json" -H "Authorization: Bearer <TO
341341
"files": "public"
342342
},
343343
"files": {
344-
"enabled": true
344+
"enabled": false
345345
},
346346
"metadata": {
347347
"creators": [
@@ -360,6 +360,7 @@ curl -k -XPOST -H "Content-Type: application/json" -H "Authorization: Bearer <TO
360360
}
361361
],
362362
"publication_date": "2020-06-01",
363+
"publisher": "My instance",
363364
"resource_type": {
364365
"id": "image-photo"
365366
},
@@ -381,6 +382,7 @@ To publish it, you can take the `"publish"` link from the response:
381382
"latest_html": "https://127.0.0.1:5000/records/jnmmp-51n47/latest",
382383
"record": "https://127.0.0.1:5000/api/records/jnmmp-51n47",
383384
"record_html": "https://127.0.0.1:5000/records/jnmmp-51n47",
385+
// vvvvvvvv this one vvvvvvvv
384386
"publish": "https://127.0.0.1:5000/api/records/jnmmp-51n47/draft/actions/publish",
385387
"versions": "https://127.0.0.1:5000/api/records/jnmmp-51n47/versions",
386388
"access_links": "https://127.0.0.1:5000/api/records/jnmmp-51n47/access/links",
@@ -419,11 +421,15 @@ Photo by <a href="https://unsplash.com/@jayceexie?utm_source=unsplash&amp;utm_me
419421

420422
Save it as `leaf_shiba.png` in your current directory.
421423

422-
**First**, we need to work with a draft, so we create one as per above:
424+
**First**, we need to work with a draft, so we create one as per above with the difference that we enable files this time:
423425

424426
```bash
425427
curl -k -XPOST -H "Content-Type: application/json" -H "Authorization: Bearer <TOKEN>" https://127.0.0.1:5000/api/records -d '{
426-
...
428+
...
429+
"files": {
430+
"enabled": true
431+
},
432+
...
427433
}'
428434
```
429435

0 commit comments

Comments
 (0)