From 9cd4b9e7705ea3212fd71f628ecab15060c0b53f Mon Sep 17 00:00:00 2001 From: Victor Lyuboslavsky Date: Tue, 7 Nov 2023 17:22:55 -0600 Subject: [PATCH] Adding details for /queries/run endpoint. (#14956) From discussions on PR https://github.com/fleetdm/fleet/pull/14909 --- docs/REST API/rest-api.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/REST API/rest-api.md b/docs/REST API/rest-api.md index be25af5cc184..427f2ee42df0 100644 --- a/docs/REST API/rest-api.md +++ b/docs/REST API/rest-api.md @@ -6018,11 +6018,10 @@ load balancer timeout. #### Parameters - -| Name | Type | In | Description | -| --------- | ------ | ---- | --------------------------------------------- | -| query_ids | array | body | **Required**. The IDs of the saved queries to run. | -| host_ids | array | body | **Required**. The IDs of the hosts to target. | +| Name | Type | In | Description | +|-----------|-------|------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| query_ids | array | body | **Required**. The IDs of the saved queries to run. If a mix of authorized and unauthorized IDs is provided, only results from authorized queries will be returned. | +| host_ids | array | body | **Required**. The IDs of the hosts to target. User must be authorized to target all of these hosts. | #### Example