diff --git a/elasticsearch/_async/client/__init__.py b/elasticsearch/_async/client/__init__.py index 88648343d..185b31e3d 100644 --- a/elasticsearch/_async/client/__init__.py +++ b/elasticsearch/_async/client/__init__.py @@ -122,12 +122,12 @@ class AsyncElasticsearch(BaseClient): # Set 'api_key' on the constructor client = Elasticsearch( "http://localhost:9200", - api_key=("id", "api_key") + api_key="api_key", ) client.search(...) # Set 'api_key' per request - client.options(api_key=("id", "api_key")).search(...) + client.options(api_key="api_key").search(...) """ def __init__(