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 endpoint updates an existing Access Policy, with changes propagating to long-lasting storage.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request uses a PATCH method and requires a specific format for the \u003ccode\u003epolicy.name\u003c/code\u003e path parameter.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eupdateMask\u003c/code\u003e query parameter is required to specify which fields of the Access Policy should be updated.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain an instance of an Access Policy and a successful response will return an Operation instance.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for this endpoint requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\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/v1/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/v1/accessPolicies#AccessPolicy) propagate to long-lasting storage.\n\n### HTTP request\n\n`PATCH https://accesscontextmanager.googleapis.com/v1/{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/v1/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)."]]