Bulk update queries
Technical Preview
Bulk update queries of a stream. Can add new queries and delete existing ones.
Path parameters
-
name
string Required
Body
-
operations
array[object] Required
POST
/api/streams/{name}/queries/_bulk
curl \
--request POST 'https://localhost:5601/api/streams/{name}/queries/_bulk' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{"operations":[{"index":{"id":"string","title":"string","kql":{"query":"string"}}}]}'
Request examples
# Headers
kbn-xsrf: true
# Payload
{
"operations": [
{
"index": {
"id": "string",
"title": "string",
"kql": {
"query": "string"
}
}
}
]
}