Updates a service perimeter. The long-running operation from this RPC has a successful status after the service perimeter propagates to long-lasting storage. If a service perimeter contains errors, an error response is returned for the first error encountered.
[[["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 page details how to update a service perimeter, which is accomplished through a PATCH request to a specific URL endpoint.\u003c/p\u003e\n"],["\u003cp\u003eThe URL requires a \u003ccode\u003eservicePerimeter.name\u003c/code\u003e path parameter, which must follow a strict format and cannot be changed after creation.\u003c/p\u003e\n"],["\u003cp\u003eThe request body contains the updated \u003ccode\u003eServicePerimeter\u003c/code\u003e data, while the query parameter \u003ccode\u003eupdateMask\u003c/code\u003e determines which fields will be modified.\u003c/p\u003e\n"],["\u003cp\u003eA successful request returns an \u003ccode\u003eOperation\u003c/code\u003e object in the response body, indicating the long-running update process.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for this operation requires the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: accessPolicies.servicePerimeters.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 [service perimeter](/access-context-manager/docs/reference/rest/v1/accessPolicies.servicePerimeters#ServicePerimeter). The long-running operation from this RPC has a successful status after the [service perimeter](/access-context-manager/docs/reference/rest/v1/accessPolicies.servicePerimeters#ServicePerimeter) propagates to long-lasting storage. If a [service perimeter](/access-context-manager/docs/reference/rest/v1/accessPolicies.servicePerimeters#ServicePerimeter) contains errors, an error response is returned for the first error encountered.\n\n### HTTP request\n\n`PATCH https://accesscontextmanager.googleapis.com/v1/{servicePerimeter.name=accessPolicies/*/servicePerimeters/*}`\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 [ServicePerimeter](/access-context-manager/docs/reference/rest/v1/accessPolicies.servicePerimeters#ServicePerimeter).\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)."]]