Create sticky filters - Fluid Topics - Latest

Fluid Topics API Reference Guide

Category
Reference Guides
Audience
public
Version
Latest

This web service allows users with the ADMIN or PORTAL_ADMIN role to create a set of sticky filters.

It is necessary to provide an Ft-Calling-App value when using Fluid Topics web services. See Fluid Topics calling app.

Method Endpoint
POST
/api/admin/sticky-filters

Request example

The following example shows a JSON request body to create one set of sticky filters:

{
  "id": "my-filters-set",
  "localizedData": [
    {
      "locale": "en-US",
      "displayName": "My filters set",
      "description": "Description of my filters set"
    },
    {
      "locale": "fr-FR",
      "displayName": "Mon set de filtres",
      "description": "Description de mon set de filtres"
    }
  ],
  "filters": {
    "or": [
      {
        "and": [
          {
            "key": "Door",
            "value": "Type1"
          },
          {
            "key": "Year",
            "value": "2026"
          },
          {
            "not": {
              "key": "Meta1",
              "value": "value1"
            }
          }
        ]
      },
      {
        "and": [
          {
            "key": "Window",
            "value": "Type3"
          },
          {
            "key": "Year",
            "value": "2025"
          }
        ]
      }
    ]
  }
}
Field Type Required? Description
id String No The unique ID of the sticky filters set. The ID is automatically generated if not specified.
A sticky filter ID can only contain letters (a-z, A-Z), digits (0-9), and hyphens (-).
localizedData Array Yes An object containing the localized information for the sticky filters set.
locale String Yes Locale of the sticky filters set.
displayName String Yes The localized name of the sticky filters set.
description String No The localized description of the sticky filters set.
filters Object No An object containing the sticky filters.
or / and Array No An object containing the metadata keys and values to combine with an OR or AND operator to apply as sticky filters.
key String No A metadata key.
value String No A metadata value.
not Object No An object containing the metadata key and value to apply as sticky filters with a NOT operator.

Response body

The following example shows a JSON response body when creating one set of sticky filters:

{
  "id": "my-filters-set"
}
Field Type Description
id String Unique ID of the sticky filters set.
Return code Description
200 OK Sticky filters have been created.
400 BAD REQUEST Invalid JSON request body, or the action requested is impossible (for example, creating a set of sticky filters with an already existing ID).
401 UNAUTHORIZED Authentication is required.

For a comprehensive list of all possible return codes, see Return codes.