v1
latestSwagger 2.02026-07-17290378721.8 KBdatasources
Update an existing data source by its sequential ID.
Similar to creating a data source, password and basicAuthPassword should be defined under secureJsonData in order to be stored securely as an encrypted blob in the database. Then, the encrypted fields are listed under secureJsonFields section in the response.
If you are running Grafana Enterprise and have Fine-grained access control enabled you need to have a permission with action: datasources:write and scopes: datasources:*, datasources:id:* and datasources:id:1 (single data source).
Please refer to updated API instead
put/datasources/{id}
Path parameters
idstring required
Request body
Response
(empty)
Example response
{
"id": 65,
"message": "Data source added",
"name": "My Data source"
}