Spaces method and path for this operation:
put /s/{space_id}/api/streams/{name}/_query
Refer to Spaces for more information.
Upserts the query settings of a query stream definition
[Required authorization] Route required privileges: manage_stream.
PUT
/api/streams/{name}/_query
curl \
--request PUT 'https://localhost:5601/api/streams/{name}/_query' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{"query":{"esql":"string"}}'