[[["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-05-30 UTC."],[[["\u003cp\u003eThis content outlines the process for replacing a Binary Authorization platform policy using an HTTP PUT request.\u003c/p\u003e\n"],["\u003cp\u003eThe request URL requires a \u003ccode\u003epolicy.name\u003c/code\u003e parameter, which represents the relative resource name of the platform policy being targeted.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain an instance of \u003ccode\u003ePlatformPolicy\u003c/code\u003e, and a successful response will also include a \u003ccode\u003ePlatformPolicy\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eThe API endpoint utilizes gRPC Transcoding syntax, and requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"]]],[],null,["# Method: projects.platforms.policies.replacePlatformPolicy\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\nReplaces a [platform policy](/binary-authorization/docs/reference/rest/v1/projects.platforms.policies#PlatformPolicy). Returns `NOT_FOUND` if the policy doesn't exist.\n\n### HTTP request\n\n`PUT https://binaryauthorization.googleapis.com/v1/{policy.name=projects/*/platforms/*/policies/*}`\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 [PlatformPolicy](/binary-authorization/docs/reference/rest/v1/projects.platforms.policies#PlatformPolicy).\n\n### Response body\n\nIf successful, the response body contains an instance of [PlatformPolicy](/binary-authorization/docs/reference/rest/v1/projects.platforms.policies#PlatformPolicy).\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](https://cloud.google.com/docs/authentication/)."]]