Skip to content

Commit 163adc3

Browse files
Merge #1553
1553: chore(doc): fix example of master api key deletion r=bidoubiwa a=94noni # Pull Request ## Related issue Fixes browsing doc at https://www.meilisearch.com/docs/learn/security/master_api_keys#deleting-an-api-key I am not into JS but when comparing switf/php and js on this paraphrase, found this error I think ref https://www.meilisearch.com/docs/reference/api/keys#example-4 <img width="777" alt="Capture d’écran 2023-08-02 à 09 08 29" src="https://github.com/meilisearch/meilisearch-js/assets/1358361/6801dbc4-677f-4dd6-b3e8-2b00207b1b50"> Co-authored-by: Antoine M <[email protected]>
2 parents c72dca2 + 2f0eae3 commit 163adc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.code-samples.meilisearch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ security_guide_list_keys_1: |-
693693
client.getKeys()
694694
security_guide_delete_key_1: |-
695695
const client = new MeiliSearch({ host: 'http://localhost:7700', apiKey: 'masterKey' })
696-
client.getKey('ac5cd97d-5a4b-4226-a868-2d0eb6d197ab')
696+
client.deleteKey('ac5cd97d-5a4b-4226-a868-2d0eb6d197ab')
697697
authorization_header_1: |-
698698
const client = new MeiliSearch({ host: 'http://localhost:7700', apiKey: 'masterKey' })
699699
client.getKeys()

0 commit comments

Comments
 (0)