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
If the dataset/file is not public, the caller must authenticate and have permission to view the dataset/file. In such cases, the generated URL will include a callback token containing a signed URL the tool can use to retrieve all the parameters it is configured for.
8
+
9
+
Backward incompatibility:
10
+
The responses from the GET /api/externalTools and /api/externalTools/{id} are now formatted as JSON (previously the toolParameters and allowedApiCalls were JSON serialized as strings) and any confiugured "requirements" are included.
Copy file name to clipboardExpand all lines: doc/sphinx-guides/source/api/changelog.rst
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@ v6.8
13
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.
14
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
15
- For GET /api/dataverses/$dataverse-alias/links the Json response has changed breaking the backward compatibility of the API.
16
+
- For GET /api/externalTools and /api/externalTools/{id} the responses are now formatted as JSON (previously the toolParameters and allowedApiCalls were a JSON object and array (respectively) that were serialized as JSON strings) and any configured "requirements" are included.
This API call generates a URL for accessing an external tool (see :doc:`/installation/external-tools`) that operates at the dataset level. The URL includes necessary authentication tokens and parameters based on the user's permissions and the tool's configuration.
3449
+
3450
+
Authentication is required for draft or deaccessioned datasets and the user must have ViewUnpublishedDataset permission.
This API call is intended as a callback that can be used by :doc:`/installation/external-tools` to retrieve signed Urls necessary for their interaction with Dataverse.
3500
+
This API call is intended as a callback that can be used by :doc:`/installation/external-tools` to retrieve signed URLs necessary for their interaction with Dataverse.
3449
3501
It can be called directly as well.
3450
3502
3451
3503
The response is a JSON object described in the :doc:`/api/external-tools` section of the API guide.
@@ -5281,6 +5333,82 @@ Note the optional "limit" parameter. Without it, the API will attempt to populat
5281
5333
5282
5334
By default, the admin API calls are blocked and can only be called from localhost. See more details in :ref:`:BlockedApiEndpoints <:BlockedApiEndpoints>` and :ref:`:BlockedApiPolicy <:BlockedApiPolicy>` settings in :doc:`/installation/config`.
5283
5335
5336
+
Get File External Tool URL
5337
+
~~~~~~~~~~~~~~~~~~~~~~~~~~
5338
+
5339
+
This API call generates a URL for accessing an external tool (see :doc:`/installation/external-tools`) that operates at the file level. The URL includes necessary authentication tokens and parameters based on the user's permissions and the tool's configuration.
5340
+
5341
+
Authentication is required for draft, restricted, embargoed, or expired (retention period) files; the user must have appropriate permissions.
This API call is intended as a callback that can be used by :doc:`/installation/external-tools` to retrieve signed URLs necessary for their interaction with Dataverse files.
5392
+
It can be called directly as well.
5393
+
5394
+
The response is a JSON object described in the :doc:`/api/external-tools` section of the API guide.
* API endpoint to retrieve a URL for a dataset-level external tool.
5158
+
*
5159
+
* This endpoint allows clients to get a URL for accessing an external tool
5160
+
* that operates at the dataset level. The URL includes necessary authentication tokens and
5161
+
* parameters based on the user's permissions and the tool's configuration.
5162
+
*
5163
+
* The endpoint accepts JSON input with optional parameters:
5164
+
* - preview: boolean flag to indicate if the tool should run in preview mode (preview mode, if supported by the tool, suppresses showing metadata (i.e. item name/PID) and is intended for cases where the tool is embedded in the dataset/file page and this metadata is not needed. The current JSF UI never embeds a dataset-level tool in an iframe, so this is param is not currently useful (and may not be supported in dataset tools yet)
5165
+
* - locale: string specifying the locale for internationalization
5166
+
*
5167
+
* The response includes:
5168
+
* - toolUrl: the URL to access the external tool
5169
+
* - toolName: the display name of the external tool
5170
+
* - datasetId: the ID of the dataset
5171
+
* - preview: whether the URL is for preview mode
5172
+
*
5173
+
* Authentication is required, and appropriate permissions are checked before generating the URL.
5174
+
* For restricted datasets (draft or deaccessioned), the user must have ViewUnpublishedDataset permission.
5175
+
*
5176
+
* @param crc The container request context for authentication
5177
+
* @param datasetId The ID of the dataset
5178
+
* @param externalToolId The ID of the external tool
0 commit comments