---
title: "Revert Artifact Endpoint"
method: POST
path: "/artifacts/{artifact_id}/revert"
tags: ["Artifacts"]
---

# Revert Artifact Endpoint

`POST /artifacts/{artifact_id}/revert`

Restore the artifact's last committed version, discarding the draft delta.

Phase D.1 carves this out as a distinct endpoint instead of routing through
`op/revert`. Revert touches version history (it doesn't just flip a state
field) so it warrants its own verb. If the artifact has no committed
version yet, returns `204 No Content` per the design doc's "no-op" rule.

## Path parameters

- `artifact_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/agience/apis/agience-platform-api.md) · [All operations](https://skmtc.net/agience/apis/agience-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agience/agience-platform-api/versions/187bad270c94/schema)
