You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: meilisearch/client.py
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -309,7 +309,7 @@ def create_key(
309
309
310
310
defupdate_key(
311
311
self,
312
-
key: str,
312
+
key_or_uid: str,
313
313
options: Dict[str, Any]
314
314
) ->Dict[str, Any]:
315
315
"""Update an API key.
@@ -318,7 +318,7 @@ def update_key(
318
318
319
319
----------
320
320
key:
321
-
The key for which to update the information.
321
+
The key or the uid of the key for which to update the information.
322
322
options:
323
323
The information to use in creating the key (ex: { 'description': 'Search Key', 'expiresAt': '22-01-01' }). Note that if an
324
324
expires_at value is included it should be in UTC time.
@@ -334,16 +334,16 @@ def update_key(
334
334
MeiliSearchApiError
335
335
An error containing details about why Meilisearch can't process your request. Meilisearch error codes are described here: https://docs.meilisearch.com/errors/#meilisearch-errors
An error containing details about why Meilisearch can't process your request. Meilisearch error codes are described here: https://docs.meilisearch.com/errors/#meilisearch-errors
0 commit comments