You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The [API for listing the collections a dataverse has been linked to](https://guides.dataverse.org/en/latest/admin/dataverses-datasets.html#list-dataverse-collection-links) (`api/dataverses/$dataverse-alias/links`) has been refactored to return a new Json format. This is a breaking API.
Copy file name to clipboardExpand all lines: doc/sphinx-guides/source/admin/dataverses-datasets.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,7 +118,7 @@ Moves a dataset whose id is passed to a Dataverse collection whose alias is pass
118
118
Link a Dataset
119
119
^^^^^^^^^^^^^^
120
120
121
-
Creates a link between a dataset and a Dataverse collection (see the :ref:`dataset-linking` section of the User Guide for more information). Accessible to users with Link Dataset permission on the Dataverse collection. ::
121
+
Creates a link between a dataset and a Dataverse collection (see the :ref:`dataset-linking` section of the User Guide for more information). ::
122
122
123
123
curl -H "X-Dataverse-key: $API_TOKEN" -X PUT http://$SERVER/api/datasets/$linked-dataset-id/link/$linking-dataverse-alias
124
124
@@ -155,7 +155,7 @@ It returns a list in the following format (new format as of v6.4):
155
155
Unlink a Dataset
156
156
^^^^^^^^^^^^^^^^
157
157
158
-
Removes a link between a dataset and a Dataverse collection. Accessible to users with Link Dataset permission on the Dataverse collection. ::
158
+
Removes a link between a dataset and a Dataverse collection. Accessible to users with Publish Dataset permissions. ::
Copy file name to clipboardExpand all lines: doc/sphinx-guides/source/api/changelog.rst
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,10 @@ This API changelog is experimental and we would love feedback on its usefulness.
9
9
10
10
v6.8
11
11
----
12
+
12
13
- For POST /api/files/{id}/metadata passing an empty string ("description":"") or array ("categories":[]) will no longer be ignored. Empty fields will now clear out the values in the file's metadata. To ignore the fields simply do not include them in the JSON string.
13
14
- For PUT /api/datasets/{id}/editMetadata the query parameter "sourceInternalVersionNumber" has been removed and replaced with "sourceLastUpdateTime" to verify that the data being edited hasn't been modified and isn't stale.
15
+
- For GET /api/dataverses/$dataverse-alias/links the Json response has changed breaking the backward compatibility of the API.
Copy file name to clipboardExpand all lines: doc/sphinx-guides/source/api/native-api.rst
+48Lines changed: 48 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5947,6 +5947,8 @@ Notifications
5947
5947
5948
5948
See :ref:`account-notifications` in the User Guide for an overview. For a list of all the notification types mentioned below (e.g. ASSIGNROLE), see :ref:`mute-notifications` in the Admin Guide.
5949
5949
5950
+
.. _get-all-notifications:
5951
+
5950
5952
Get All Notifications by User
5951
5953
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5952
5954
@@ -5956,6 +5958,52 @@ Each user can get a dump of their notifications by passing in their API token:
The expected OK (200) response looks something like this:
5962
+
5963
+
.. code-block:: text
5964
+
5965
+
{
5966
+
"status": "OK",
5967
+
"data": {
5968
+
"notifications": [
5969
+
{
5970
+
"id": 38,
5971
+
"type": "CREATEACC",
5972
+
"displayAsRead": true,
5973
+
"subjectText": "Root: Your account has been created",
5974
+
"messageText": "Hello, \nWelcome to...",
5975
+
"sentTimestamp": "2025-07-21T19:15:37Z"
5976
+
}
5977
+
...
5978
+
5979
+
Get Unread Count
5980
+
~~~~~~~~~~~~~~~~
5981
+
5982
+
You can get a count of your unread notifications as shown below.
5983
+
5984
+
.. code-block:: bash
5985
+
5986
+
curl -H "X-Dataverse-key:$API_TOKEN" -X GET "$SERVER_URL/api/notifications/unreadCount"
5987
+
5988
+
Mark Notification As Read
5989
+
~~~~~~~~~~~~~~~~~~~~~~~~~
5990
+
5991
+
After finding the ID of a notification using :ref:`get-all-notifications`, you can pass it to the "markAsRead" API endpoint as shown below. Note that this endpoint is idempotent; you can mark an already-read notification as read over and over.
Copy file name to clipboardExpand all lines: doc/sphinx-guides/source/user/dataverse-management.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -215,7 +215,7 @@ Dataset linking allows a Dataverse collection owner to "link" their Dataverse co
215
215
216
216
For example, researchers working on a collaborative study across institutions can each link their own individual institutional Dataverse collections to the one collaborative dataset, making it easier for interested parties from each institution to find the study.
217
217
218
-
In order to link a dataset, you will need your account to have the "Link Dataset" permission on the Dataverse collection that is doing the linking. If you created the Dataverse collection then you should have this permission already, but if not then you will need to ask the admin of that Dataverse collection to assign that permission to your account. You do not need any special permissions on the dataset being linked.
218
+
In order to link a dataset, you will need your account to have the "Publish Dataset" permission on the Dataverse collection that is doing the linking. If you created the Dataverse collection then you should have this permission already, but if not then you will need to ask the admin of that Dataverse collection to assign that permission to your account. You do not need any special permissions on the dataset being linked.
219
219
220
220
To link a dataset to your Dataverse collection, you must navigate to that dataset and click the white "Link" button in the upper-right corner of the dataset page. This will open up a window where you can type in the name of the Dataverse collection that you would like to link the dataset to. Select your Dataverse collection and click the save button. This will establish the link, and the dataset will now appear under your Dataverse collection.
0 commit comments