Creates or updates a project's policy, and returns a copy of the new policy. A policy is always updated as a whole, to avoid race conditions with concurrent policy enforcement (or management!) requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is malformed.
HTTP request
PUT https://binaryauthorization.googleapis.com/v1alpha2/{policy.name=projects/*/policy}
[[["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 2024-04-12 UTC."],[[["This page details how to create or update a project's policy using a `PUT` HTTP request to the specified URL."],["The request URL uses gRPC Transcoding syntax and requires a `policy.name` path parameter in the format `projects/*/policy`."],["The request body must contain an instance of `Policy`, and a successful response will also return an instance of `Policy`."],["Updating a policy is done as a whole to avoid conflicts with concurrent requests, and the process will return an error if the project doesn't exist or if the request is malformed."],["Authorization for this request requires the `https://www.googleapis.com/auth/cloud-platform` OAuth scope."]]],[]]