---
title: Model: Rule
slug: feature-experimentation/api/model-rule
docTags: 
createdAt: 2026-09-16T16:59:34.550Z
---

### Code examples

```json
{
  "allow_list": "",
  "archived": false,
  "audience_conditions": [
    {}
  ],
  "baseline_variation_id": 0,
  "comment": "",
  "created_time": "",
  "custom_fields": "",
  "deployed_td_rule_audience_conditions": [
    {}
  ],
  "deployed_td_rule_key": "",
  "deployed_td_rule_percentage_included": 0,
  "deployed_variation_key": "",
  "description": "",
  "distribution_mode": "",
  "enabled": true,
  "environment_key": "",
  "environment_name": "",
  "fetch_results_ui_url": {},
  "flag_key": "",
  "flag_name": "",
  "group_id": "",
  "group_remaining_traffic_allocation": 0,
  "group_rule": {
    "group_id": 0,
    "group_name": "",
    "traffic_allocation": 0
  },
  "hypothesis": "",
  "id": 0,
  "key": "",
  "layer_experiment_id": 0,
  "layer_id": 0,
  "metrics": [
    {
      "aggregator": "",
      "display_title": "",
      "display_unit": "",
      "event_id": "",
      "event_properties": {
        "filter": {
          "combine_operator": "",
          "conditions": [
            {
              "name": "",
              "operator": "",
              "type": "",
              "value": ""
            }
          ]
        }
      },
      "event_type": "",
      "field": "",
      "id": "",
      "metrics": [
        {
          "aggregator": "",
          "display_title": "",
          "event_id": 0,
          "event_type": "",
          "field": "",
          "role": "",
          "scope": ""
        }
      ],
      "project_id": 0,
      "scope": "",
      "visibility": "",
      "winning_direction": ""
    }
  ],
  "name": "",
  "outcome": "",
  "percentage_included": 0,
  "status": "",
  "test_plan_name": "",
  "test_plan_type": "",
  "test_plan_url": "",
  "type": "",
  "updated_time": "",
  "urn": "",
  "variations": ""
}
```
