update_filter

mutationSince v1.0

Change a stored filter's name, description, or the expression that decides what it matches. The new expression replaces the old one outright rather than being added to it. Applied immediately.

Parameters

NameTypeRequiredDefaultDescription
filterStringThe filter to change, by ID or name.
localeStringWrite the new name and description as this language's translation (for example 'de') rather than to the base text.
set_expressionObjectNew expression deciding what the filter matches. It replaces the existing one completely. Same shape as create_filter — for example {"HasTag": {"tag": "critical"}}, or {"And": [...]} to combine conditions. See the help article "Writing Filter Expressions" for the full vocabulary.
set_descriptionStringNew description for the filter.
set_nameStringNew name for the filter.

Example Request

{"filter": "Open Risks", "set_name": "Critical Open Risks", "set_expression": {"And": [{"OfType": {"type_id": "Risk"}}, {"HasTag": {"tag": "critical"}}]}}

Example Response

{"success": true, "operation_count": 1, "versions": [76]}

This content was written collaboratively with AI.