diff --git a/src/_data/sidenav/main.yml b/src/_data/sidenav/main.yml index 0b154800d2..087550c9d6 100644 --- a/src/_data/sidenav/main.yml +++ b/src/_data/sidenav/main.yml @@ -475,8 +475,13 @@ sections: title: Verifying Your Email Address - section_title: API section: - - path: /api/public-api - title: Public API + - section_title: Public API + slug: api/public-api + section: + - path: /api/public-api + title: Public API + - path: /api/public-api/fql + title: Destination Filter Query Language - section_title: Config API slug: api/config-api section: @@ -486,8 +491,6 @@ sections: title: API design - path: /api/config-api/authentication title: Authentication - - path: /api/config-api/fql - title: Destination Filter Query Language # - path: "https://reference.segmentapis.com/" # title: Reference # menu_icon: new-tab diff --git a/src/api/config-api/fql.md b/src/api/public-api/fql.md similarity index 99% rename from src/api/config-api/fql.md rename to src/api/public-api/fql.md index 4b24f7b013..33aa88dfd8 100644 --- a/src/api/config-api/fql.md +++ b/src/api/public-api/fql.md @@ -130,7 +130,7 @@ You can use parentheses to group subexpressions for more complex "and / or" logi | `length( list or string )` | `number` | Returns the number of elements in a list or number of bytes (not necessarily characters) in a string. For example, `a` is 1 byte and`ア` is 3 bytes long. | | `lowercase( s string )` | `string` | Returns `s` with all uppercase characters replaced with their lowercase equivalent. | | `typeof( value )` | `string` | Returns the type of the given value: `"string"`, `"number"`, `"list"`, `"bool"`, or `"null"`. | -| `match( s string, pattern string )` | `bool` | Returns `true` if the glob pattern `pattern` matches `s`. See below for more details about glob matching. | +| `match( s string, pattern string )` | `bool` | Returns `true` if the glob pattern `pattern` matches `s`. See below for more details about glob matching. | Functions handle `null` with sensible defaults to make writing FQL more concise. For example, you can write `length( userId ) > 0` instead of `typeof( userId ) = diff --git a/src/api/public-api.md b/src/api/public-api/index.md similarity index 98% rename from src/api/public-api.md rename to src/api/public-api/index.md index 7e93d6cb3b..685218be2f 100644 --- a/src/api/public-api.md +++ b/src/api/public-api/index.md @@ -1,5 +1,7 @@ --- title: Public API +redirect_from: + - '/public-api' --- The Segment Public API helps you manage your Segment workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. diff --git a/src/connections/destinations/destination-filters.md b/src/connections/destinations/destination-filters.md index bb88542016..e27347f3e7 100644 --- a/src/connections/destinations/destination-filters.md +++ b/src/connections/destinations/destination-filters.md @@ -46,7 +46,7 @@ To create a destination filter: ## Destination filters API -The destination filters API provides more power than Segment's dashboard destination filters settings. With the API, you can create complex filters that are conditionally applied using Segment's [Filter Query Language (FQL)](/docs/api/config-api/fql/). +The destination filters API provides more power than Segment's dashboard destination filters settings. With the API, you can create complex filters that are conditionally applied using Segment's [Filter Query Language (FQL)](/docs/api/public-api/fql/). The destination filters API offers four different filter types: