---
title: "Revert Template Modification"
method: POST
path: "/v1/templates/{template_id}/modifications/{mod_id}/revert"
tags: ["template-modifications"]
---

# Revert Template Modification

`POST /v1/templates/{template_id}/modifications/{mod_id}/revert`

Undo an in-call test correction — restores system_instructions and any SOP
attachment it touched to their pre-correction text, and marks the correction
'reverted' so it can be given again in a fresh test call and re-applied under
whatever the reconciliation logic does today, without needing a new template.

404 if the run isn't found/isn't this template's; 409 if it isn't a
revertible in-call correction, isn't 'succeeded', or the template has
changed since (reverting would discard that later change).

## Path parameters

- `template_id` string, required
- `mod_id` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/roxels/apis/interviewer.md) · [All operations](https://skmtc.dev/roxels/apis/interviewer/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/roxels/interviewer/revisions/4ef48ed226e1/schema)
