---
title: "Preview AI agent review item writeback diff"
method: GET
path: "/api/v1/aiAgents/admin/review-items/{fingerprint}/writeback-preview"
---

# Preview AI agent review item writeback diff

`GET /api/v1/aiAgents/admin/review-items/{fingerprint}/writeback-preview`

Preview the file change a writeback PR would make, without opening it.
Only project_context findings have a deterministic diff.

## Path parameters

- `fingerprint` string, required

## Response `200`

Success

- ApiAiAgentReviewItemWritebackPreviewResponse
  - `results` union, required — Preview of the file change a writeback PR would make, computed deterministically (no PR opened). Only available for the project_context strategy — semantic_layer runs in a sandbox, so there is no static diff to show before the PR is created.
    - object
      - `upgradesFileToV2` boolean, required
      - `entryId` string, required
      - `op` 'create' | 'update', required
      - `after` string, required
      - `before` string, required
      - `fileName` string, required
      - `available` true, required
    - object
      - `available` false, required
  - `status` 'ok', required

## Other responses

- `default` — Error

---

[API](https://skmtc.net/lightdash/apis/lightdash-api.md) · [All operations](https://skmtc.net/lightdash/apis/lightdash-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lightdash/lightdash-api/revisions/40c933755c9a/schema)
