> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Dry-run lint check for a proposed rule without inserting it.

> **Required scope:** write

**Required scope:** `write`

### Request body

`CreateRuleRequest`

<ParamField body="body" type="RuleAtomRequest[]" required />

<ParamField body="confidence" type="number (float)" />

<ParamField body="description" type="string" />

<ParamField body="effect" type="object" />

<ParamField body="head_args" type="string[]" required />

<ParamField body="head_predicate" type="string" required />

<ParamField body="name" type="string" required />

<ParamField body="test_cases" type="RuleTestCaseRequest[]" />

### Response

No response body. Lint diagnostics: \{diagnostics: \[...], has\_errors: bool}; the rule is NOT installed.

### Status codes

| Code  | Meaning                                                                                |
| ----- | -------------------------------------------------------------------------------------- |
| `200` | Lint diagnostics: \{diagnostics: \[...], has\_errors: bool}; the rule is NOT installed |
| `401` | Unauthorized — missing or invalid credentials                                          |
| `403` | Forbidden — the key/token lacks the required scope                                     |
| `429` | Rate limited — see Retry-After / X-RateLimit-Reset                                     |

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.nsr.stateset.com/api/v1/rules/lint' \
    --header 'X-API-Key: YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
    "body": [
      {
        "args": [],
        "negated": true,
        "predicate": "string"
      }
    ],
    "confidence": 7.5,
    "description": "Two-person tent, green — replacement for damaged pole set.",
    "effect": {
      "0": "p",
      "1": "e",
      "2": "r",
      "3": "m",
      "4": "i",
      "5": "t"
    },
    "head_args": [
      "string"
    ],
    "head_predicate": "string",
    "name": "Two-Person Tent",
    "test_cases": [
      {
        "expected_output": {},
        "input_bindings": {},
        "name": "Two-Person Tent",
        "should_fire": true
      }
    ]
  }'
  ```
</RequestExample>
