| Time | Status | User Agent |  |
| :-- | :-- | :-- | :-- |
| Make a request to see history. |

#### URL Expired

The URL for this request expired after 30 days.

### **Compute Unit Value**: `10` (fixed)

Rule object to add to the store

| Field          | Type                        | Details                                            |
|----------------|-----------------------------|----------------------------------------------------|
| name           | string                      | Required: The name of the rule                     |
| description    | string                      | Optional description of the rule                    |
| protocol       | string                      | Required: Protocol the rule applies to              |
| network        | string                      | Required: Network context of the rule               |
| type           | string                      | Required: The rule type                             |
| isActive       | boolean                     | Defaults to true: Whether the rule is active or not |
| safeDistance   | integer                     | Defaults to 0: Safety distance parameter            |
| safeTimeout    | integer                     | Defaults to 0: Safety timeout parameter             |
| condition_type | string                      | Enum, required: Defaults to antlr                   |
| antlrmatch_var | Allowed: `antlr`,`match_var` | Condition expressions for the rule                  |
| target         | uuid                        | Required: ID of the target associated with the rule |
| template       | ID | Predefined Template      |
| templateID     | Predefined Template         |                                                    |

# Response Codes

# ``201      Rule created

# ``default      Unexpected error

### Example Request

```bash
curl --request POST \
     --url https://svc.blockdaemon.com/streaming/v2/rules \
     --header 'accept: application/json' \
     --header 'authorization: Bearer ••••' \
     --header 'content-type: application/json' \
     --data '\
{\
  "isActive": true,\
  "safeDistance": 0,\
  "safeTimeout": 0,\
  "condition_type": "antlr"\
}\
'  
```

### Response Codes

application/json

``201``default
