Update a saved search
update_saved_searchModify a team-editable workspace saved search by updating its name, filters, groups, or visibility while preserving existing group IDs and leaving omitted fields unchanged.
Instructions
Update a workspace saved search. Only searches with team_edit visibility can be modified — Alidade-curated and view-only searches cannot, and when connected via OAuth only the search's owner can change its visibility. Omitted fields are left unchanged. groups replaces all comparison groups: include each existing group's id (from get_saved_search) to preserve it, since readouts and bulletins pin group IDs and dropping a referenced group is refused. Providing any keyword parameter replaces the whole keyword filter (empty arrays clear it). Searches with dynamic (rule-based) groups accept only name and description changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Saved search ID. | |
| name | No | New name. | |
| groups | No | Replaces all comparison groups. Include an existing group's `id` to preserve its identity; groups without an `id` get a new one. | |
| keywords | No | Keywords to filter post content by. Cannot be combined with `booleanQuery`. | |
| dateRange | No | Replaces the date range. null = all time. | |
| platforms | No | Replaces the platform filter. Empty = all platforms. | |
| visibility | No | New workspace visibility. Setting `team_view` makes the search view-only for workspace members and no longer editable via the API. | |
| description | No | New description; null clears it. | |
| booleanQuery | No | Boolean keyword query matching the app's advanced search mode. Syntax: AND/OR/NOT (upper case), parentheses, quoted phrases with optional proximity ("health care"~3 = up to 3 words between, any phrase length, max 20), NEAR/N (either order) and THEN/N (ordered) between terms or groups, wildcards (elect*, wom?n), fuzzy (medicaid~1, max 2). Always use explicit operators between terms. Mixing AND or NOT with OR at the same depth is an error — parenthesize to make precedence explicit ((a AND b) OR c, (a OR b) NOT c). NEAR/THEN bind tighter than AND/OR — parenthesize a proximity expression that sits next to AND/OR ((a NEAR/5 b) OR c, (a OR b) NEAR/5 c). NOT is not allowed inside NEAR/THEN; exclude outside the proximity expression. Matching is exact-token, case- and accent-insensitive (no stemming) — cover word variants with OR or a wildcard (tariff OR tariffs, tariff*). Korean attaches particles to words, so put a trailing wildcard on each Korean term (검색*). Hindi is written in Devanagari and romanized, so OR both forms ((दोस्त OR dost)); Devanagari and Tamil matching ignores vowel signs, so expect some unrelated matches. Comments are ignored by search: // to the end of the line, <<< >>> inline or across lines. Full syntax: https://docs.alidade-ai.com/search-syntax. Cannot be combined with the keyword parameters. | |
| keywordMatch | No | Whether posts must match any (default) or all of `keywords`. | |
| excludeKeywords | No | Keywords that matching posts must not contain (exact word/phrase match). Cannot be combined with `booleanQuery`. | |
| keywordMatchType | No | Exact (default) matches the literal word or phrase; stemmed also matches English word variants (win/wins/winning). |