v1

latestSwagger 2.02026-07-17290378721.8 KB
datasource_permissions
enterprise

Disable permissions for a data source.

Disables permissions for the data source with the given id. All existing permissions will be removed and anyone will be able to query the data source.

You need to have a permission with action datasources.permissions:toggle and scopes datasources:*, datasources:id:*, datasources:id:1 (single data source).

post/datasources/{datasourceId}/disable-permissions

Path parameters

datasourceIdstring required

Response

(empty)

idinteger required

ID Identifier of the new data source.

messagestring required

Message Message of the deleted dashboard.

namestring required

Name of the new data source.

Example response

{
  "id": 65,
  "message": "Data source added",
  "name": "My Data source"
}