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
With this release, we remove some legacy specialties around Database Settings and provide better Admin API endpoints for them.
4
+
5
+
Most important changes:
6
+
7
+
1. Setting `BuiltinUsers.KEY` was renamed to `:BuiltinUsersKey`, aligned with our general naming pattern for options.
8
+
2. Setting `:TabularIngestSizeLimit` no longer uses suffixes for formats and becomes a JSON-based setting instead.
9
+
3. If set, both settings will be migrated to their new form automatically for you (Flyway migration).
10
+
4. You can no longer (accidentally) create or use arbitrary setting names or languages.
11
+
All Admin API endpoints for settings now validate setting names and languages for existence and compliance.
12
+
13
+
As an administrator of a Dataverse instance, you can now make use of enhanced Bulk Operations on the Settings Admin API:
14
+
15
+
1. Retrieving all settings as JSON via `GET /api/admin/settings` supports localized options now, too.
16
+
2. You can replace all existing settings in an idempotent way sending JSON to `PUT /api/admin/settings`.
17
+
This will create, update and remove settings as necessary in one atomic operation.
18
+
The new endpoint is especially useful to admins using GitOps or other automations.
19
+
It allows control over all Database Settings from a single source without risking an undefined state.
20
+
21
+
Note: Despite the validation of setting names and languages, the content of any database setting is still not being validated when using the Settings Admin API!
Copy file name to clipboardExpand all lines: doc/sphinx-guides/source/api/native-api.rst
+30-5Lines changed: 30 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6530,7 +6530,11 @@ If the PID is not managed by Dataverse, this call will report if the PID is reco
6530
6530
Admin
6531
6531
-----
6532
6532
6533
-
This is the administrative part of the API. For security reasons, it is absolutely essential that you block it before allowing public access to a Dataverse installation. Blocking can be done using settings. See the ``post-install-api-block.sh`` script in the ``scripts/api`` folder fordetails. See :ref:`blocking-api-endpoints`in Securing Your Installation section of the Configuration page of the Installation Guide.
6533
+
This is the administrative part of the API.
6534
+
For security reasons, it is absolutely essential that you block it before allowing public access to a Dataverse installation.
6535
+
Blocking can be done using settings.
6536
+
See the ``post-install-api-block.sh`` script in the ``scripts/api`` folder for details.
6537
+
See :ref:`blocking-api-endpoints`in Securing Your Installation section of the Configuration page of the Installation Guide.
6534
6538
6535
6539
List All Database Settings
6536
6540
~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -6539,27 +6543,48 @@ List all settings::
6539
6543
6540
6544
GET http://$SERVER/api/admin/settings
6541
6545
6542
-
Configure Database Setting
6543
-
~~~~~~~~~~~~~~~~~~~~~~~~~~
6546
+
Configure All Database Settings
6547
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6548
+
6549
+
Replace all settings in a single idempotent and atomic operation::
6550
+
6551
+
PUT http://$SERVER/api/admin/settings
6552
+
6553
+
The :doc:`../installation/config` page of the Installation Guide has a :ref:`complete list of all the available settings <database-settings>`.
6554
+
6555
+
Configure Single Database Setting
6556
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6544
6557
6545
6558
Sets setting ``name`` to the body of the request::
6546
6559
6547
6560
PUT http://$SERVER/api/admin/settings/$name
6548
6561
6562
+
Sets a localized setting ``name``for locale/language ``lang`` to the body of the request::
6563
+
6564
+
PUT http://$SERVER/api/admin/settings/$name/lang/$lang
6565
+
6549
6566
Get Single Database Setting
6550
6567
~~~~~~~~~~~~~~~~~~~~~~~~~~~
6551
6568
6552
6569
Get the setting under ``name``::
6553
6570
6554
6571
GET http://$SERVER/api/admin/settings/$name
6555
6572
6556
-
Delete Database Setting
6557
-
~~~~~~~~~~~~~~~~~~~~~~~
6573
+
Gets a localized setting under ``name``for locale/language ``lang``::
6574
+
6575
+
GET http://$SERVER/api/admin/settings/$name/lang/$lang
6576
+
6577
+
Delete Single Database Setting
6578
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6558
6579
6559
6580
Delete the setting under ``name``::
6560
6581
6561
6582
DELETE http://$SERVER/api/admin/settings/$name
6562
6583
6584
+
Delete a localized setting under ``name``for locale/language ``lang``::
0 commit comments