[[["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-08 UTC."],[[["\u003cp\u003eThis API endpoint creates a new RuleSet within a specified project and location.\u003c/p\u003e\n"],["\u003cp\u003eThe request uses the \u003ccode\u003ePOST\u003c/code\u003e method to \u003ccode\u003ehttps://contentwarehouse.googleapis.com/v1/{parent}/ruleSets\u003c/code\u003e, requiring a \u003ccode\u003eparent\u003c/code\u003e path parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain the details of the RuleSet being created, as a \u003ccode\u003eRuleSet\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests return a newly created \u003ccode\u003eRuleSet\u003c/code\u003e instance in the response body.\u003c/p\u003e\n"],["\u003cp\u003eCreating a RuleSet requires the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e and the IAM permission \u003ccode\u003econtentwarehouse.ruleSets.create\u003c/code\u003e on the parent resource.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.ruleSets.create\n\nCreates a ruleset.\n\n### HTTP request\n\n`POST https://contentwarehouse.googleapis.com/v1/{parent}/ruleSets`\n\n### Path parameters\n\n### Request body\n\nThe request body contains an instance of [RuleSet](/document-warehouse/docs/reference/rest/v1/projects.locations.ruleSets#RuleSet).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [RuleSet](/document-warehouse/docs/reference/rest/v1/projects.locations.ruleSets#RuleSet).\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/).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource:\n\n- `contentwarehouse.ruleSets.create`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]