Spaces method and path for this operation:
post /s/{space_id}/api/streams/{name}/queries/_bulk
Refer to Spaces for more information.
Bulk update queries of a stream. Can add new queries and delete existing ones.
[Required authorization] Route required privileges: manage_stream.
POST
/api/streams/{name}/queries/_bulk
curl \
--request POST 'https://<KIBANA_URL>/api/streams/{name}/queries/_bulk' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{"operations":[{"index":{"description":"string","esql":{"query":"string"},"evidence":["string"],"id":"string","severity_score":42.0,"title":"string"}}]}'