Sets the access control policy on the specified note or occurrence. Requires containeranalysis.notes.setIamPolicy or containeranalysis.occurrences.setIamPolicy permission if the resource is a note or an occurrence, respectively.
The resource takes the format projects/[PROJECT_ID]/notes/[NOTE_ID] for notes and projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID] for occurrences.
REQUIRED: The complete policy to be applied to the resource. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services (such as Projects) might reject them.
Response body
If successful, the response body contains an instance of 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 2025-07-31 UTC."],[[["\u003cp\u003eThis document details how to set the access control policy on a specified note or occurrence, requiring specific permissions for each resource type.\u003c/p\u003e\n"],["\u003cp\u003eThe resource can be either a note or an occurrence, identified by a specific format such as \u003ccode\u003eprojects/[PROJECT_ID]/notes/[NOTE_ID]\u003c/code\u003e or \u003ccode\u003eprojects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eRequests are made via HTTP, using gRPC Transcoding syntax, and must specify a location from a predefined list of available locations.\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires a JSON structure containing a policy object, which is necessary for defining the access control policy.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests will receive a response body containing a \u003ccode\u003ePolicy\u003c/code\u003e instance, and requests must include the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"]]],[],null,[]]