# 补丁目录筛选规则 更新应用于用户属性的指定规则。当前值将用于未指定的属性。 Endpoint: PATCH /v2/project/{project_id}/admin/user/attribute/rule/{rule_id} Version: 2.0.0 Security: basicAuth ## Path parameters: - `project_id` (integer, required) 项目ID。您可以在您的发布商帐户项目名称旁边找到。 Example: 44056 - `rule_id` (number, required) 规则ID。 Example: 1 ## Request fields (application/json): - `attribute_conditions` (array) 用户属性验证条件。 根据用户属性是否满足所有指定条件来确定目录商品可用性。 - `is_enabled` (boolean) 如果已启用规则。 - `is_satisfied_for_unauth` (boolean) 是否向未经授权的用户显示该商品。如为true,无论目录显示规则如何,该商品都会向未经授权的用户显示。默认为false。 - `items` (array) - `name` (string) 规则的可读名称。用于在发布商帐户中显示规则。 ## Response 401 fields (application/json): - `errorCode` (integer) Example: 1501 - `errorMessage` (string) Example: "[0401-1501]: Authorization failed: Authorization header not sent" - `statusCode` (integer) Example: 401 - `transactionId` (string) Example: "x-x-x-x-transactionId-mock-x-x-x" ## Response 422 fields (application/json): - `errorCode` (number) 错误代码。 Example: 1102 - `errorMessage` (string) 可读的错误消息。 Example: "[0401-1102]: Unprocessable Entity. The property `external_id` is required" - `statusCode` (number) 响应状态码。 Example: 422 - `transactionId` (string) 请求的唯一ID。 Example: "da145238620011eb8e24fe6913ff226a" ## Response 204 fields