From ad8211cce764938e3980d190d04f60cce5d531b4 Mon Sep 17 00:00:00 2001 From: Frederic Hemberger Date: Fri, 30 Jun 2023 17:14:31 +0200 Subject: [PATCH] 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. --- docs/sources/developers/http_api/serviceaccount.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/sources/developers/http_api/serviceaccount.md b/docs/sources/developers/http_api/serviceaccount.md index 5f60ddd97da..c97a73ef23b 100644 --- a/docs/sources/developers/http_api/serviceaccount.md +++ b/docs/sources/developers/http_api/serviceaccount.md @@ -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" } ```