v1

latestSwagger 2.02026-07-17290378721.8 KB
datasource_permissions
enterprise

Enable permissions for a data source.

Enables permissions for the data source with the given id. No one except Org Admins will be able to query the data source until permissions have been added which permit certain users or teams 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}/enable-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"
}