Docs / SynthEvents / Errors / scenario-unknown
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, andvalue, 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 lists the scenarios of every domain, and Courses, Library, and To-Dos describe them.
Example#
For the scenario daily of the library, SynthEvents answers:
{
"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"
}
}
}