From 3aa60059a06f615349634db0fb2039d437f9dc6b Mon Sep 17 00:00:00 2001 From: Carol Stigum Date: Mon, 15 Dec 2025 15:14:15 -0500 Subject: [PATCH] CLOUD-18523 Support for dynamic filters in API connector --- snippets/en/Data-Sources/APICreateTable.mdx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/snippets/en/Data-Sources/APICreateTable.mdx b/snippets/en/Data-Sources/APICreateTable.mdx index f65bce2..ed94318 100644 --- a/snippets/en/Data-Sources/APICreateTable.mdx +++ b/snippets/en/Data-Sources/APICreateTable.mdx @@ -22,6 +22,23 @@ Enter the URL of your API endpoint into the **Request URL** field. If you select `Post`, supply the **Body** to include in the API request. Then enter the `URL` of your API endpoint. + +

+You can use the **Body** section to request body filters for `Post` API requests. The following is an example of a request body and a filter: +``` +{ + "query": { "date_utc": { "$gte": "[_input.startDate]", "$lte": "[_input.endDate]" } }, "options": { "select": \["name", "date_utc", "success", "details"], "sort": { "date_utc": "asc" }, "limit": 20 } +} +``` +

+In this case, the user is prompted to input a start date and an end date. +

+When you have a body filter, **Edit Table** displays the message **Body Filter(s) Detected**. +

+ +If your table request body also contains filters, you need to add an escape character to the square bracket, as shown in the example above before `"name"`. + +
Select a **Response Type** of **JSON**, **LDJSON**, **XML**, or **CSV**.