post
https://api.jmapcloud.io/api/mcs/rest/v1/organizations//projects//tables//dynamic-filters
Adds a dynamic filter to a table.
Required role: ORG_EDITOR, and the current user must have the MODIFY permission on the project.
Fields
| Field | Required | Description |
|---|---|---|
name | Yes | Display name by locale. Must have a text in the project's default language. Each text is limited to 2048 characters. |
filter | Yes | CQL2-JSON expression. It is checked against the table's data: an invalid expression or an unknown attribute returns 400. |
active | No | Default true. |
Response
201 with the id of the new dynamic filter in result. Its URL is also in the Location header.
What a dynamic filter is
A dynamic filter is a named filter of a table that users can turn on or off:
| Field | Content |
|---|---|
name | Display name by locale (en, fr, es) |
filter | A CQL2-JSON expression on the table's attributes, for example { "op": "=", "args": [ { "property": "STATUS" }, "Open" ] } |
active | Whether the filter is active (default true) |
Organization and project
organization must be the organization of the access token, and the project must belong to it. The table must belong to the project; otherwise the request returns 404.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…