From dc8a30be0066b502884622a22a1a9c0e572208d4 Mon Sep 17 00:00:00 2001 From: Lisa Cawley Date: Wed, 20 Oct 2021 16:56:16 -0700 Subject: [PATCH] [DOCS] Fixes broken link to 7.x documentation (#1578) --- docs/authentication.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/authentication.asciidoc b/docs/authentication.asciidoc index 71ffe4c46..38e1289f8 100644 --- a/docs/authentication.asciidoc +++ b/docs/authentication.asciidoc @@ -60,7 +60,7 @@ const client = new Client({ === ApiKey authentication You can use the https://www.elastic.co/guide/en/elasticsearch/reference/7.16/security-api-create-api-key.html[ApiKey] authentication by passing the `apiKey` parameter via the `auth` option. + -The `apiKey` parameter can be either a base64 encoded string or an object with the values that you can obtain from the https://www.elastic.co/guide/en/elasticsearch/reference/7.x/security-api-create-api-key.html[create api key endpoint]. +The `apiKey` parameter can be either a base64 encoded string or an object with the values that you can obtain from the {ref-7x}/security-api-create-api-key.html[create api key endpoint]. NOTE: If you provide both basic authentication credentials and the Api Key configuration, the Api Key will take precedence.