Updates an access policy. The long-running operation from this RPC has a successful status after the changes to the access policy propagate to long-lasting storage.
[[["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-17 UTC."],[[["\u003cp\u003eThis webpage details how to update an Access Policy via an HTTP PATCH request to the \u003ccode\u003eaccessPolicies\u003c/code\u003e endpoint.\u003c/p\u003e\n"],["\u003cp\u003eThe request URL structure is defined by gRPC Transcoding syntax and requires a \u003ccode\u003epolicy.name\u003c/code\u003e path parameter specifying the Access Policy to be updated.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a \u003ccode\u003eupdateMask\u003c/code\u003e query parameter, which is a comma-separated list specifying the fields within the Access Policy that should be updated.\u003c/p\u003e\n"],["\u003cp\u003eThe request body needs an \u003ccode\u003eAccessPolicy\u003c/code\u003e instance, and the successful response returns an \u003ccode\u003eOperation\u003c/code\u003e instance, indicative of a long-running operation.\u003c/p\u003e\n"],["\u003cp\u003eTo utilize this update method, you must have the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope enabled.\u003c/p\u003e\n"]]],[],null,["# Method: accessPolicies.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 an [access policy](/access-context-manager/docs/reference/rest/v1alpha/accessPolicies#AccessPolicy). The long-running operation from this RPC has a successful status after the changes to the [access policy](/access-context-manager/docs/reference/rest/v1alpha/accessPolicies#AccessPolicy) propagate to long-lasting storage.\n\n### HTTP request\n\n`PATCH https://accesscontextmanager.googleapis.com/v1alpha/{policy.name=accessPolicies/*}`\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 [AccessPolicy](/access-context-manager/docs/reference/rest/v1alpha/accessPolicies#AccessPolicy).\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/access-context-manager/docs/reference/rest/Shared.Types/Operation).\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)."]]