Skip to content

Commit 9a1a0d8

Browse files
authored
Update native-api.rst
1 parent 05fd0f8 commit 9a1a0d8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

+7-7
Original file line numberDiff line numberDiff line change
@@ -2872,23 +2872,23 @@ Signposting is not supported for draft dataset versions.
28722872
28732873
curl -H "Accept:application/json" "$SERVER_URL/api/datasets/:persistentId/versions/$VERSION/linkset?persistentId=$PERSISTENT_IDENTIFIER"
28742874
2875-
Get Dataset By Private URL Token
2875+
Get Dataset By Preview URL Token
28762876
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28772877

28782878
.. code-block:: bash
28792879
28802880
export SERVER_URL=https://demo.dataverse.org
2881-
export PRIVATE_URL_TOKEN=a56444bc-7697-4711-8964-e0577f055fd2
2881+
export PREVIEW_URL_TOKEN=a56444bc-7697-4711-8964-e0577f055fd2
28822882
2883-
curl "$SERVER_URL/api/datasets/privateUrlDatasetVersion/$PRIVATE_URL_TOKEN"
2883+
curl "$SERVER_URL/api/datasets/privateUrlDatasetVersion/$PREVIEW_URL_TOKEN"
28842884
28852885
If you want to include the Dataverse collections that this dataset is part of, you must set ``returnOwners`` query parameter to ``true``.
28862886

28872887
Usage example:
28882888

28892889
.. code-block:: bash
28902890
2891-
curl "https://demo.dataverse.org/api/datasets/privateUrlDatasetVersion/a56444bc-7697-4711-8964-e0577f055fd2?returnOwners=true"
2891+
curl "https://demo.dataverse.org/api/datasets/previewUrlDatasetVersion/a56444bc-7697-4711-8964-e0577f055fd2?returnOwners=true"
28922892
28932893
28942894
.. _get-citation:
@@ -2914,15 +2914,15 @@ Usage example:
29142914
29152915
curl -H "Accept:application/json" "$SERVER_URL/api/datasets/:persistentId/versions/$VERSION/{version}/citation?persistentId=$PERSISTENT_IDENTIFIER&includeDeaccessioned=true"
29162916
2917-
Get Citation by Private URL Token
2917+
Get Citation by Preview URL Token
29182918
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
29192919

29202920
.. code-block:: bash
29212921
29222922
export SERVER_URL=https://demo.dataverse.org
2923-
export PRIVATE_URL_TOKEN=a56444bc-7697-4711-8964-e0577f055fd2
2923+
export PREVIEW_URL_TOKEN=a56444bc-7697-4711-8964-e0577f055fd2
29242924
2925-
curl "$SERVER_URL/api/datasets/privateUrlDatasetVersion/$PRIVATE_URL_TOKEN/citation"
2925+
curl "$SERVER_URL/api/datasets/previewUrlDatasetVersion/$PREVIEW_URL_TOKEN/citation"
29262926
29272927
.. _get-dataset-summary-field-names:
29282928

0 commit comments

Comments
 (0)