Jump to: navigation, search

Create filter

Method

POST

Syntax

POST /filters/<tenant_dbid>

Response Body

{
  "name": "<filter name>",
  "public": <true/false>,
  "columns": [
    <column definition>,
    ...
  ],
  "criteria": [
    <short criterion definition>,
    ...
  ]
}

Where short criterion definition is defined as the following:

{
  "template_expression": "<template_expression>",
  "elements":
  [
    {
      "name": "<element name>",
      "value": "<current value>"
    },
    ...
  ]
}

Notes

  • A filter is required to contain at least one column. If there is no column, an error status HTTP 400 Bad Request will be returned.
  • The list of criteria may be empty or missing.
  • If an element name is INPUT_ATTRIBUTE_NAME, its value must be a qualified attribute name. If the attribute is not recognized in the requested category, the data category is assumed, regardless of its prefix.
This page was last edited on December 19, 2017, at 11:03.
Comments or questions about this documentation? Contact us for support!