---
title: "Validate changed files before reporting success"
method: POST
path: "/api/v1/agent-runs/{id}/validate-change"
tags: ["Execution"]
---

# Validate changed files before reporting success

`POST /api/v1/agent-runs/{id}/validate-change`

## Request

- Base URL: `https://www.specky.space`
- URL: `https://www.specky.space/api/v1/agent-runs/{id}/validate-change`
- Auth: HTTP bearer

## Path parameters

- `id` string, uuid, required

## Request body

- ValidateChangeRequest
  - `changed_files` string[], required
  - `diff` string
  - `collection` string
  - `tags` string[]
  - `language` string
  - `framework` string
  - `query` string

## Response `200`

Successful response. Always includes `summary` (string) and `ok: true`; mutating endpoints additionally include the created resource id under a tool-specific key.

- OkSummary
  - `ok` true
  - `summary` string: Human-readable result text.

## Other responses

- `400`: Invalid request body or path
- `401`: Missing or invalid bearer token

---

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