From 53296ee930b6376aa627bb167189e749b6ff0b6d Mon Sep 17 00:00:00 2001 From: noahtalerman <47070608+noahtalerman@users.noreply.github.com> Date: Mon, 8 Mar 2021 11:46:05 -0800 Subject: [PATCH] Fix queries/run endpoint and queries/run_by_name (#411) - Fix api/v1/fleet/queries/run endpoint. Prior the fix, the endpoint was incorrectly documented as api/v1/fleet/spec/queries/run - Fix api/v1/fleet/queries/run_by_names endpoint. Prior the fix, the endpoint was incorrectly documented as api/v1/fleet/queries/run --- docs/1-Using-Fleet/3-REST-API.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/1-Using-Fleet/3-REST-API.md b/docs/1-Using-Fleet/3-REST-API.md index cb30c25c8b..6732ab5547 100644 --- a/docs/1-Using-Fleet/3-REST-API.md +++ b/docs/1-Using-Fleet/3-REST-API.md @@ -2233,7 +2233,7 @@ Creates and/or modifies the queries included in the specs list. To modify an exi Runs the specified query as a live query on the specified hosts or group of hosts. Returns a new live query campaign. Individual hosts must be specified with the host's ID. Groups of hosts are specified by label ID. -`POST /api/v1/fleet/spec/queries/run` +`POST /api/v1/fleet/queries/run` #### Parameters @@ -2244,7 +2244,7 @@ Runs the specified query as a live query on the specified hosts or group of host #### Example with one host targeted by ID -`POST /api/v1/fleet/spec/queries/run` +`POST /api/v1/fleet/queries/run` ##### Request body @@ -2281,7 +2281,7 @@ Runs the specified query as a live query on the specified hosts or group of host #### Example with multiple hosts targeted by label ID -`POST /api/v1/fleet/spec/queries/run` +`POST /api/v1/fleet/queries/run` ##### Request body @@ -2320,7 +2320,7 @@ Runs the specified query as a live query on the specified hosts or group of host Runs the specified query by name as a live query on the specified hosts or group of hosts. Returns a new live query campaign. Individual hosts must be specified with the host's ID. Groups of hosts are specified by label. -`POST /api/v1/fleet/spec/queries/run` +`POST /api/v1/fleet/queries/run_by_names` #### Parameters @@ -2331,7 +2331,7 @@ Runs the specified query by name as a live query on the specified hosts or group #### Example with one host targeted -`POST /api/v1/fleet/spec/queries/run` +`POST /api/v1/fleet/queries/run_by_names` ##### Request body