Update a filter Added in 6.4.0

POST /_ml/filters/{filter_id}/_update

Updates the description of a filter, adds items, or removes items from the list.

Path parameters

  • filter_id string Required

    A string that uniquely identifies a filter.

application/json

Body Required

Responses

POST /_ml/filters/{filter_id}/_update
curl \
 -X POST http://api.example.com/_ml/filters/{filter_id}/_update \
 -H "Content-Type: application/json" \
 -d '{"add_items":["string"],"description":"string","remove_items":["string"]}'
Request examples
{
  "add_items": [
    "string"
  ],
  "description": "string",
  "remove_items": [
    "string"
  ]
}
Response examples (200)
{
  "description": "string",
  "filter_id": "string",
  "items": [
    "string"
  ]
}