# Create catalog filter rule Create rule for user attributes. Endpoint: POST /v2/project/{project_id}/admin/user/attribute/rule Version: 2.0.0 Security: basicAuth ## Path parameters: - `project_id` (integer, required) Project ID. You can find this parameter in your Publisher Account next to the name of the project. Example: 44056 ## Request fields (application/json): - `name` (string, required) Readable name of a rule. Used to display a rule in Publisher Account. - `is_enabled` (boolean, required) If rule is enabled. - `is_satisfied_for_unauth` (boolean) Whether the item is displayed to unauthorized users. If true, the item is displayed to the unauthorized user regardless of catalog display rules. false by default. - `attribute_conditions` (array, required) Conditions for validating user attributes. Determine item availability in the catalog based on whether user attributes match all specified conditions. - `items` (array, required) ## Response 201 fields (application/json): - `rule_id` (number) Rule ID. ## Response 401 fields (application/json): - `statusCode` (integer) Example: 401 - `errorCode` (integer) Example: 1501 - `errorMessage` (string) Example: "[0401-1501]: Authorization failed: Authorization header not sent" - `transactionId` (string) Example: "x-x-x-x-transactionId-mock-x-x-x" ## Response 422 fields (application/json): - `statusCode` (number) Response status code. Example: 422 - `errorCode` (number) Error code. Example: 1102 - `errorMessage` (string) Readable error message. Example: "[0401-1102]: Unprocessable Entity. The property `external_id` is required" - `transactionId` (string) Unique ID of request. Example: "da145238620011eb8e24fe6913ff226a"