# scenario-unknown

The request names a **scenario that the domain does not have**.

- **Status:** `422 Unprocessable Entity`
- **Route:** `POST /api/v1/generate-events`
- **Description:** `scenario is unknown: expected a scenario of the domain`
- **Details:** **`domain`**, the domain as the request gave it, and **`value`**, the scenario as the request gave it.

## Why It Happens

The domain has no scenario of that name. Names are lowercase and exact.

## How to Fix It

Use a scenario of the domain. **[`read-domains`](/docs/synthevents/api#reading-domains)** lists the scenarios of every domain, and **[Courses](/docs/synthevents/courses#scenarios)**, **[Library](/docs/synthevents/library#scenarios)**, and **[To-Dos](/docs/synthevents/todo#scenarios)** describe them.

## Example

For the scenario `daily` of the library, SynthEvents answers:

```json
{
  "type": "error",
  "data": {
    "code": "https://docs.synthevents.io/errors/scenario-unknown",
    "description": "scenario is unknown: expected a scenario of the domain",
    "details": {
      "domain": "library",
      "value": "daily"
    }
  }
}
```
