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.
This commit is contained in:
@@ -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"
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user