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

# Reset adaptive policy state

> Start a new adaptive-policy state history or rebuild policy state from a known ordered observation record.

```text theme={null}
POST /api/v1/domains/{domain_id}/adapt/reset
```

Use this route when the application intentionally starts a new adaptive-policy history or rebuilds policy state from a known ordered observation record.

<Warning>
  `POST /api/v1/domains/{domain_id}/adapt/reset`, `POST /api/v1/domains/{domain_id}/clear`, and `POST /api/v1/memory/clear` own different state. Do not substitute one for another.
</Warning>

## Request body

```json theme={null}
{
  "session_id": "ignored",
  "retain_patterns": false,
  "retain_intervals": false
}
```

| Field              | Required | Meaning                                                               |
| ------------------ | -------- | --------------------------------------------------------------------- |
| `session_id`       | Yes      | On hosted UAT, the authentication proxy may replace this value        |
| `retain_patterns`  | No       | Preserve learned pattern state when supported by the selected policy  |
| `retain_intervals` | No       | Preserve learned interval state when supported by the selected policy |

## Response shape

```json theme={null}
{
  "status": "success",
  "domain_id": "adaptive-demo-domain",
  "session_id": "agent-id",
  "retained_patterns": false,
  "retained_intervals": false
}
```

Reset establishes the starting state for the next ordered sequence. It does not clear normal domain records or all session state.
