---
title: "Scenario"
method: POST
path: "/v1/models/{model_id}/scenario"
tags: ["inference"]
---

# Scenario

`POST /v1/models/{model_id}/scenario`

Scenario search: find row modifications that reach a desired class.

## Path parameters

- `model_id` string, uuid, required

## Request body

- ScenarioRequest — unresolved $ref

## Response `200`

Successful Response

- JobSubmissionResponse
  - `job_id` union, required
    - string, uuid
    - string
  - `status` 'pending' | 'running' | 'completed' | 'failed' | 'cancelled', required
  - `message` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-07-26** `17afb53a6ac9` — 1 breaking, 9 warning, 6 info
  - added the new required request property `dataframe/sql`
  - removed the request property `check_every`
  - removed the request property `dataframe/columns`
  - removed the request property `dataframe/plan`
  - …12 more

[Change history](https://skmtc.dev/outerproduct/apis/outerproduct-api/changes/v1/models/:model_id/scenario/post.md)

---

[API](https://skmtc.dev/outerproduct/apis/outerproduct-api.md) · [All operations](https://skmtc.dev/outerproduct/apis/outerproduct-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/outerproduct/outerproduct-api/revisions/6c6e81fb3282/schema)
