For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
[[["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-08-08 UTC."],[[["\u003cp\u003eThis page documents the process of creating a new Policy via a \u003ccode\u003ePOST\u003c/code\u003e request to the specified URL endpoint: \u003ccode\u003ehttps://dns.googleapis.com/dns/v1/projects/{project}/policies\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a \u003ccode\u003eproject\u003c/code\u003e path parameter to identify the relevant project and supports an optional \u003ccode\u003eclientOperationId\u003c/code\u003e query parameter for client-specified operation identification.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain a \u003ccode\u003ePolicy\u003c/code\u003e instance, and a successful response will include the newly created \u003ccode\u003ePolicy\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for this operation requires either the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/ndev.clouddns.readwrite\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: policies.create\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- [Examples](#examples)\n- [Try it!](#try-it)\n\nCreates a new policy.\n\n### HTTP request\n\n`POST https://dns.googleapis.com/dns/v1/projects/{project}/policies`\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 [Policy](/dns/docs/reference/rest/v1/policies#Policy).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Policy](/dns/docs/reference/rest/v1/policies#Policy).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `\n https://www.googleapis.com/auth/ndev.clouddns.readwrite`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]