[v10.0.x] docs/serviceaccount.md - Incorrect key "role" for creating token (#70991)

docs/serviceaccount.md - Incorrect key "role" for creating token (#68809)

The key "role" in the JSON body doesn't make sense for creating service account *tokens* (and the method will happily create one without it). It is only required for creating the service account itself.

(cherry picked from commit ad8211cce7)

Co-authored-by: Frederic Hemberger <mail@frederic-hemberger.de>
This commit is contained in:
grafana-delivery-bot[bot]
2023-06-30 16:25:50 +01:00
committed by GitHub
co-authored by Frederic Hemberger
parent e486eaa3b2
commit 47ac8e353c
@@ -106,7 +106,7 @@ Authorization: Basic YWRtaW46YWRtaW4=
{
"name": "grafana",
"role": "Viewer",
"isDisabled" : false
"isDisabled": false
}
```
@@ -440,8 +440,7 @@ Content-Type: application/json
Authorization: Basic YWRtaW46YWRtaW4=
{
"name": "grafana",
"role": "Viewer"
"name": "grafana"
}
```