diff --git a/.code-samples.meilisearch.yaml b/.code-samples.meilisearch.yaml index 0714bb4b8..2ad2e7a21 100644 --- a/.code-samples.meilisearch.yaml +++ b/.code-samples.meilisearch.yaml @@ -1350,11 +1350,9 @@ update_localized_attribute_settings_1: |- curl \ -X PUT 'MEILISEARCH_URL/indexes/INDEX_NAME/settings/localized-attributes' \ -H 'Content-Type: application/json' \ - --data-binary '{ - "localizedAttributes": [ - {"locales": ["jpn"], "attributePatterns": ["*_ja"]} - ] - }' + --data-binary '[ + {"locales": ["jpn"], "attributePatterns": ["*_ja"]} + ]' reset_localized_attribute_settings_1: |- curl \ -X DELETE 'MEILISEARCH_URL/indexes/INDEX_NAME/settings/localized-attributes' diff --git a/reference/api/settings.mdx b/reference/api/settings.mdx index ba54f2dc7..2572cdf72 100644 --- a/reference/api/settings.mdx +++ b/reference/api/settings.mdx @@ -856,11 +856,9 @@ Get the localized attributes settings of an index. ##### Response: `200 OK` ```json -{ - "localizedAttributes": [ - {"locales": ["jpn"], "attributePatterns": ["*_ja"]} - ] -} +[ + {"locales": ["jpn"], "attributePatterns": ["*_ja"]} +] ``` ### Update localized attribute settings @@ -878,14 +876,12 @@ Update the localized attributes settings of an index. #### Body ``` -{ - "localizedAttributes": [ - { - "locales": [, …], - "attributePatterns": [, …], - } - ] -} +[ + { + "locales": [, …], + "attributePatterns": [, …], + } +] ``` | Name | Type | Default value | Description |