Skip to content

Commit 273e36b

Browse files
update based on review
1 parent fda72a5 commit 273e36b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.code-samples.meilisearch.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ create_an_index_1: |-
1919
}'
2020
update_an_index_1: |-
2121
curl \
22-
-X PUT 'http://localhost:7700/indexes/movies' \
22+
-X PATCH 'http://localhost:7700/indexes/movies' \
2323
-H 'Content-Type: application/json' \
2424
--data-binary '{ "primaryKey": "id" }'
2525
delete_an_index_1: |-
@@ -832,7 +832,7 @@ primary_field_guide_add_document_primary_key: |-
832832
]'
833833
primary_field_guide_update_document_primary_key: |-
834834
curl \
835-
-X PUT 'http://localhost:7700/indexes/books' \
835+
-X PATCH 'http://localhost:7700/indexes/books' \
836836
-H 'Content-Type: application/json' \
837837
--data-binary '{ "primaryKey": "title" }'
838838
tenant_token_guide_search_no_sdk_1: |-

reference/api/indexes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ You can use the response's `uid` to [track the status of your request](/referenc
112112

113113
## Update an index
114114

115-
<RouteHighlighter method="PUT" route="/indexes/{index_uid}"/>
115+
<RouteHighlighter method="PATCH" route="/indexes/{index_uid}"/>
116116

117117
Update an [index's](/learn/core_concepts/indexes.md) [primary key](/learn/core_concepts/primary_key.md#primary-key). The index [`uid`](/learn/core_concepts/indexes.md#index-uid) is required.
118118

0 commit comments

Comments
 (0)