---
title: "Draft an AI prompt that ignores differences like the picked one"
method: POST
path: "/api/v1/visual-compare/comparisons/{id}/ignore-prompt"
tags: ["Visual Compare"]
---

# Draft an AI prompt that ignores differences like the picked one

`POST /api/v1/visual-compare/comparisons/{id}/ignore-prompt`

## Request

- Base URL: `https://toolkit.browserstack.com`
- URL: `https://toolkit.browserstack.com/api/v1/visual-compare/comparisons/{id}/ignore-prompt`
- Auth: API key in cookie `_wdt_rails_session`

Ask AI, step one: given the ids of the AI regions the user picked on a finished comparison, returns the prompt Percy AI drafted to ignore similar differences. Waits for the draft (a few seconds).

## Path parameters

- `id` string, required

## Request body

- object
  - `region_ids` string[], required: Percy AI region ids of the differences to ignore (alphanumeric)

## Response `200`

Prompt drafted

- object
  - `data` object
    - `prompt` string
    - `mode` string

## Other responses

- `422`: Prompt could not be drafted

---

[API](https://skmtc.dev/birdeatsbug/apis/wdt-rails-api.md) - [All operations](https://skmtc.dev/birdeatsbug/apis/wdt-rails-api/llms.txt) - [OpenAPI document](https://skmtc.dev/birdeatsbug/apis/wdt-rails-api/revisions/cbd06b547b6a?raw)
