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.

Feedback

Comment on this article:

blog comments powered by Disqus
This page was last modified on December 19, 2017, at 03:03.