For projects.regions.autoscalingPolicies, the resource name of the policy has the following format: projects/{projectId}/regions/{region}/autoscalingPolicies/{policy_id}
For projects.locations.autoscalingPolicies, the resource name of the policy has the following format: projects/{projectId}/locations/{location}/autoscalingPolicies/{policy_id}
[[["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-06-20 UTC."],[[["\u003cp\u003eThis webpage details how to update an autoscaling policy using a \u003ccode\u003ePUT\u003c/code\u003e HTTP request to the specified URL, which follows gRPC Transcoding syntax.\u003c/p\u003e\n"],["\u003cp\u003eThe update operation requires providing the policy's resource name via the \u003ccode\u003epolicy.name\u003c/code\u003e path parameter, structured according to either \u003ccode\u003eprojects/{projectId}/regions/{region}/autoscalingPolicies/{policy_id}\u003c/code\u003e or \u003ccode\u003eprojects/{projectId}/locations/{location}/autoscalingPolicies/{policy_id}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain a full replacement instance of the \u003ccode\u003eAutoscalingPolicy\u003c/code\u003e, while the response body, upon success, will also contain an instance of \u003ccode\u003eAutoscalingPolicy\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eTo authorize the update, you must include the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope in your request.\u003c/p\u003e\n"]]],[],null,["# Method: projects.regions.autoscalingPolicies.update\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_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 (replaces) autoscaling policy.\n\nDisabled check for updateMask, because all updates will be full replacements.\n\n### HTTP request\n\n`PUT https://dataproc.googleapis.com/v1/{policy.name=projects/*/regions/*/autoscalingPolicies/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains an instance of [AutoscalingPolicy](/dataproc/docs/reference/rest/v1/projects.locations.autoscalingPolicies#AutoscalingPolicy).\n\n### Response body\n\nIf successful, the response body contains an instance of [AutoscalingPolicy](/dataproc/docs/reference/rest/v1/projects.locations.autoscalingPolicies#AutoscalingPolicy).\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)."]]