To work with Vault resources, the account must have the required Vault privileges and access to the matter. To access a matter, the account must have created the matter, have the matter shared with them, or have the View All Matters privilege.
Output only. The matter ID of the matter the saved query is saved in. The server does not use this field during create and always uses matter ID in the URL.
Output only. The server-generated timestamp when the saved query was created.
Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-17 UTC."],[],[],null,["# REST Resource: matters.savedQueries\n\n- [Resource: SavedQuery](#SavedQuery)\n - [JSON representation](#SavedQuery.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: SavedQuery\n--------------------\n\nThe definition of a saved query.\n\nTo work with Vault resources, the account must have the [required Vault privileges](https://support.google.com/vault/answer/2799699) and access to the matter. To access a matter, the account must have created the matter, have the matter shared with them, or have the **View All Matters** privilege.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"savedQueryId\": string, \"displayName\": string, \"query\": { object (/workspace/vault/reference/rest/v1/Query) }, \"matterId\": string, \"createTime\": string } ``` |\n\n| Fields ||\n|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `savedQueryId` | `string` A unique identifier for the saved query. |\n| `displayName` | `string` The name of the saved query. |\n| `query` | `object (`[Query](/workspace/vault/reference/rest/v1/Query)`)` The search parameters of the saved query. |\n| `matterId` | `string` Output only. The matter ID of the matter the saved query is saved in. The server does not use this field during create and always uses matter ID in the URL. |\n| `createTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` Output only. The server-generated timestamp when the saved query was created. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than \"Z\" are also accepted. Examples: `\"2014-10-02T15:01:23Z\"`, `\"2014-10-02T15:01:23.045123456Z\"` or `\"2014-10-02T15:01:23+05:30\"`. |\n\n| Methods ------- ||\n|------------------------------------------------------------------------------|--------------------------------------|\n| ### [create](/workspace/vault/reference/rest/v1/matters.savedQueries/create) | Creates a saved query. |\n| ### [delete](/workspace/vault/reference/rest/v1/matters.savedQueries/delete) | Deletes the specified saved query. |\n| ### [get](/workspace/vault/reference/rest/v1/matters.savedQueries/get) | Retrieves the specified saved query. |\n| ### [list](/workspace/vault/reference/rest/v1/matters.savedQueries/list) | Lists the saved queries in a matter. |"]]