[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-30 UTC."],[[["\u003cp\u003eThis page details how to update a saved query using a PATCH HTTP request to the Google Cloud Asset Inventory API.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires specifying the \u003ccode\u003esavedQuery.name\u003c/code\u003e path parameter, which is the resource name of the saved query and must follow a specific format involving the project, folder, or organization.\u003c/p\u003e\n"],["\u003cp\u003eAn \u003ccode\u003eupdateMask\u003c/code\u003e query parameter is required to define the fields that need updating, and should be provided in a comma-separated list format using the FieldMask format.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain an instance of \u003ccode\u003eSavedQuery\u003c/code\u003e, and a successful request will return an instance of \u003ccode\u003eSavedQuery\u003c/code\u003e as the response body.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization to perform this action requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: savedQueries.patch\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nUpdates a saved query.\n\n### HTTP request\n\n`PATCH https://cloudasset.googleapis.com/v1/{savedQuery.name=*/*/savedQueries/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [SavedQuery](/asset-inventory/docs/reference/rest/v1/savedQueries#SavedQuery).\n\n### Response body\n\nIf successful, the response body contains an instance of [SavedQuery](/asset-inventory/docs/reference/rest/v1/savedQueries#SavedQuery).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]