Skip to content

Instantly share code, notes, and snippets.

@davidohana
Created June 17, 2020 11:25
Show Gist options
  • Save davidohana/ca2ced75af483ce530c1f805773f8ef5 to your computer and use it in GitHub Desktop.
Save davidohana/ca2ced75af483ce530c1f805773f8ef5 to your computer and use it in GitHub Desktop.
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