If you have not lost the admin password then it is better to set in the Grafana UI. If you need to set the password in a script then the [Grafana API]({{<relref"http_api/user/#change-password">}}) can be used. Here is an example with curl using basic auth:
If you have not lost the admin password then it is better to set in the Grafana UI. If you need to set the password in a script then the [Grafana API](http://docs.grafana.org/http_api/user/#change-password) can be used. Here is an example with curl using basic auth:
```
```
curl -X PUT -H "Content-Type: application/json" -d '{
curl -X PUT -H "Content-Type: application/json" -d '{