<?php // This example assumes the Chilkat API to have been previously unlocked. // See Global Unlock Sample for sample code. $http = new COM("Chilkat.Http"); $http->SetRequestHeader('X-Meili-Api-Key','masterKey'); $resp = new COM("Chilkat.HttpResponse"); $success = $http->HttpNoBody('DELETE','http://localhost:7700/indexes/indexUID/settings/sortable-attributes',$resp); if ($success == 0) { print $http->LastErrorText . "\n"; exit; } print $resp->StatusCode . "\n"; print $resp->BodyStr . "\n"; ?>
curl -X DELETE -H "X-Meili-Api-Key: masterKey" http://localhost:7700/indexes/indexUID/settings/sortable-attributes
{
"name": "Reset sortable attributes",
"request": {
"method": "DELETE",
"header": [
],
"url": {
"raw": "{{url}}/indexes/{{indexUID}}/settings/sortable-attributes",
"host": [
"{{url}}"
],
"path": [
"indexes",
"{{indexUID}}",
"settings",
"sortable-attributes"
]
}
},
"response": [
]
}