Created
June 17, 2020 11:25
-
-
Save davidohana/ca2ced75af483ce530c1f805773f8ef5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
role_doc = {"role": "Admin"} | |
grafana_server_url = "https://localhost:3000" | |
patch_user_endpoint = grafana_server_url + "/api/org/users/" | |
role_end_point = patch_user_endpoint + str(user_id) | |
r = requests.patch(role_end_point, | |
json=role_doc, | |
verify=False, | |
auth=('admin', grafana_admin_password)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment