Upsert a query to a stream Technical Preview

PUT /api/streams/{name}/queries/{queryId}

Adds a query to a stream. Noop if the query is already present on the stream.

Headers

  • kbn-xsrf string Required

    A required header to protect against CSRF attacks

Path parameters

application/json

Body

  • kql object Required

    Additional properties are NOT allowed.

    Hide kql attribute Show kql attribute object
    • query string Required

      Minimum length is 1.

  • title string Required

    Minimum length is 1.

PUT /api/streams/{name}/queries/{queryId}
curl \
 --request PUT 'https://<KIBANA_URL>/api/streams/{name}/queries/{queryId}' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --header "kbn-xsrf: true" \
 --data '{"kql":{"query":"string"},"title":"string"}'
Request examples
# Headers
kbn-xsrf: true

# Payload
{
  "kql": {
    "query": "string"
  },
  "title": "string"
}