HTTP request
curl \
-X PATCH 'MEILISEARCH_URL/experimental-features/' \
-H 'Authorization: Bearer API_KEY' \
-H 'Content-Type: application/json' \
--data-binary '{
"metrics": true
}'client.update_experimental_features({"metrics": True})client.update_experimental_features(metrics: true)client.ExperimentalFeatures().SetMetrics(true).Update()let client = Client::new("MEILISEARCH_URL", Some("apiKey"));
let features = ExperimentalFeatures::new(&client);
features.set_metrics(true)
let res = features
.update()
.await
.unwrap();{
"metrics": true,
"logsRoute": false,
"tasksStreamingRoute": false,
"editDocumentsByFunction": false,
"containsFilter": false,
"dynamicSearchRules": false,
"network": false,
"getTaskDocumentsRoute": false,
"taskQueueCompactionRoute": false,
"compositeEmbedders": false,
"chatCompletions": false,
"multimodal": false,
"foreignKeys": false,
"disableDocumentsFetchQueue": false,
"legacySearch": false,
"renderRoute": false,
"mcpRoute": false
}{
"message": "The Authorization header is missing. It must use the bearer authorization method.",
"code": "missing_authorization_header",
"type": "auth",
"link": "https://docs.meilisearch.com/errors#missing_authorization_header"
}Experimental features
Configure experimental features
Enable or disable experimental features at runtime.
PATCH
/
experimental-features
HTTP request
curl \
-X PATCH 'MEILISEARCH_URL/experimental-features/' \
-H 'Authorization: Bearer API_KEY' \
-H 'Content-Type: application/json' \
--data-binary '{
"metrics": true
}'client.update_experimental_features({"metrics": True})client.update_experimental_features(metrics: true)client.ExperimentalFeatures().SetMetrics(true).Update()let client = Client::new("MEILISEARCH_URL", Some("apiKey"));
let features = ExperimentalFeatures::new(&client);
features.set_metrics(true)
let res = features
.update()
.await
.unwrap();{
"metrics": true,
"logsRoute": false,
"tasksStreamingRoute": false,
"editDocumentsByFunction": false,
"containsFilter": false,
"dynamicSearchRules": false,
"network": false,
"getTaskDocumentsRoute": false,
"taskQueueCompactionRoute": false,
"compositeEmbedders": false,
"chatCompletions": false,
"multimodal": false,
"foreignKeys": false,
"disableDocumentsFetchQueue": false,
"legacySearch": false,
"renderRoute": false,
"mcpRoute": false
}{
"message": "The Authorization header is missing. It must use the bearer authorization method.",
"code": "missing_authorization_header",
"type": "auth",
"link": "https://docs.meilisearch.com/errors#missing_authorization_header"
}Authorizations
An API key is a token that you provide when making API calls. Read more about how to secure your project.
Include the API key to the Authorization header, for instance:
-H 'Authorization: Bearer 6436fc5237b0d6e0d64253fbaac21d135012ecf1'
If you use a SDK, ensure you instantiate the client with the API key, for instance with JS SDK:
const client = new MeiliSearch({
host: 'MEILISEARCH_URL',
apiKey: '6436fc5237b0d6e0d64253fbaac21d135012ecf1'
});
Body
application/json
Experimental features that can be toggled at runtime
Response
Experimental features are returned.
Experimental features that can be toggled at runtime