Skip to content

Commit d09f76c

Browse files
authored
Update native-api.rst
1 parent f088efa commit d09f76c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3552,6 +3552,21 @@ See :ref:`:CustomDatasetSummaryFields` in the Installation Guide for how the lis
35523552
35533553
curl "$SERVER_URL/api/datasets/summaryFieldNames"
35543554
3555+
.. _get-available-dataset-file-categories:
3556+
3557+
Get Available Dataset File Categories
3558+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3559+
3560+
This api returns a list of Categories that may be applied to the files of a given dataset.
3561+
3562+
.. code-block:: bash
3563+
3564+
export SERVER_URL=https://demo.dataverse.org
3565+
export PERSISTENT_IDENTIFIER=doi:10.5072/FK2/YD5QDG
3566+
3567+
curl "$SERVER_URL/api/datasets/:persistentId/availableFileCategories?persistentId=$PERSISTENT_IDENTIFIER"
3568+
3569+
35553570
.. _guestbook-at-request-api:
35563571

35573572
Configure When a Dataset Guestbook Appears (If Enabled)

0 commit comments

Comments
 (0)