---
title: "The same, with rows to fix: {id, fix:[{section_id,row}], clear:[codes]}"
method: POST
path: "/api/whatif"
---

# The same, with rows to fix: {id, fix:\[{section_id,row}\], clear:\[codes\]}

`POST /api/whatif`

## Request

- Base URL: `https://crawlcheck.io`
- URL: `https://crawlcheck.io/api/whatif`
- Auth: one of:
  - API key in header `x-crawlcheck-key`
  - HTTP bearer

## Request body

- object
  - `id` string
  - `domain` string
  - `fix` object[]
    - `section_id` string
    - `row` string
  - `clear` string[]

## Response `200`

what-if

- object, nullable
  - `ok` boolean, nullable
  - `kind` string, nullable
  - `subject` object, nullable
    - `domain` string, nullable
    - `report_id` string, nullable
    - `scanned_at` string, nullable
  - `now` object, nullable
    - `score` number, nullable
    - `letter` string, nullable
    - `cap` unknown
  - `asked` object, nullable
    - `fix` object[], nullable
      - `id` string, nullable
      - `k` string, nullable
    - `clear` unknown[], nullable
      - unknown
  - `result` object, nullable
    - `score` number, nullable
    - `letter` string, nullable
    - `cap` unknown
    - `capped` boolean, nullable
    - `held_at_reach` boolean, nullable
    - `rows_applied` number, nullable
    - `findings_cleared` number, nullable
  - `not_applied` object, nullable
    - `rows` unknown[], nullable
      - unknown
    - `findings` unknown[], nullable
      - unknown
  - `next_letter` object, nullable
    - `target` unknown
    - `why` string, nullable
  - `combined` object, nullable
    - `all_rows_fixed` object, nullable
      - `score` number, nullable
      - `letter` string, nullable
      - `cap` unknown
      - `capped` boolean, nullable
      - `held_at_reach` boolean, nullable
      - `rows_applied` number, nullable
      - `findings_cleared` number, nullable
    - `all_findings_cleared` object, nullable
      - `score` number, nullable
      - `letter` string, nullable
      - `cap` unknown
      - `capped` boolean, nullable
      - `held_at_reach` boolean, nullable
      - `rows_applied` number, nullable
      - `findings_cleared` number, nullable
    - `both` object, nullable
      - `score` number, nullable
      - `letter` string, nullable
      - `cap` unknown
      - `capped` boolean, nullable
      - `held_at_reach` boolean, nullable
      - `rows_applied` number, nullable
      - `findings_cleared` number, nullable
  - `rows` object[], nullable
    - `section_id` string, nullable
    - `row` string, nullable
    - `points` number, nullable
    - `why` unknown
  - `method` string, nullable

## Other responses

- `403`: needs a licence or the owner's session

---

[API](https://skmtc.dev/crawlcheck/apis/crawlcheck-api.md) · [All operations](https://skmtc.dev/crawlcheck/apis/crawlcheck-api/llms.txt) · [OpenAPI document](https://skmtc.dev/crawlcheck/apis/crawlcheck-api/revisions/57acbd6d4489?raw)
