diff --git a/docs/sources/developers/http_api/curl-examples.md b/docs/sources/developers/http_api/curl-examples.md index c2312d4d9c6..0965ae6c57b 100644 --- a/docs/sources/developers/http_api/curl-examples.md +++ b/docs/sources/developers/http_api/curl-examples.md @@ -33,7 +33,5 @@ You can't use authorization tokens in the request. For example, to [list permissions associated with roles]({{< relref "../../administration/roles-and-permissions/access-control/manage-rbac-roles/" >}}) given a username of `user` and password of `password`, use: ``` -curl --location --request GET '/api/access-control/builtin-roles' --header 'Authorization: Basic dXNlcjpwYXNzd29yZAo=' +curl --location '/api/access-control/builtin-roles' --user 'user:password' ``` - -where `dXNlcjpwYXNzd29yZAo=` is the base64 encoding of `user:password`.