Required. The name of the rule set to update. Format: projects/{projectNumber}/locations/{location}/ruleSets/{rule_set_id}. It takes the formprojects/{project}/locations/{location}/ruleSets/{ruleset}.
Request body
The request body contains data with the following structure:
[[["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 is used to update an existing ruleset, requiring the ruleset's name as a parameter in the request path.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ename\u003c/code\u003e parameter in the path is mandatory and must follow the format \u003ccode\u003eprojects/{projectNumber}/locations/{location}/ruleSets/{rule_set_id}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must include a \u003ccode\u003eruleSet\u003c/code\u003e object that defines the updated rule set using the correct format, which it specifies is described elsewhere in the documentation.\u003c/p\u003e\n"],["\u003cp\u003eA successful update will return the modified \u003ccode\u003eRuleSet\u003c/code\u003e instance, and the API will return an \u003ccode\u003eINVALID_ARGUMENT\u003c/code\u003e error if a non-empty ruleset name is provided that does not match the existing one.\u003c/p\u003e\n"],["\u003cp\u003eTo perform this update, the request must be authorized with the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope and the user must have the \u003ccode\u003econtentwarehouse.ruleSets.update\u003c/code\u003e IAM permission on the specified resource.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.ruleSets.patch\n\nUpdates a ruleset. Returns INVALID_ARGUMENT if the name of the ruleset is non-empty and does not equal the existing name.\n\n### HTTP request\n\n`PATCH https://contentwarehouse.googleapis.com/v1/{name}`\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an 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 `name` resource:\n\n- `contentwarehouse.ruleSets.update`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]