---
title: "Admin resolution of a quarantined context (T350/T364)"
method: POST
path: "/api/contexts/{id}/quarantine/review"
tags: ["Contexts"]
---

# Admin resolution of a quarantined context (T350/T364)

`POST /api/contexts/{id}/quarantine/review`

## Request

- Base URL: `http://localhost:38200`
- URL: `http://localhost:38200/api/contexts/{id}/quarantine/review`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `token`

`approve` moves lifecycle back to `working` (clearing tainted / quarantineReason), applying `edits` first when supplied ("edit-then-approve"). `reject` moves lifecycle to `archived`. Admin/owner (JWT) or an API key with `admin` scope only.

## Path parameters

- `id` integer, required

## Request body

- object
  - `action` 'approve' | 'reject', required
  - `edits` object
    - `name` string
    - `description` string
    - `content` string

## Response `200`

Resolved.

- object
  - `id` integer
  - `lifecycle` string

## Other responses

- `400`: Request body/query failed Zod validation.
- `401`: Missing or invalid credentials.
- `403`: Admin/owner role (or API key with admin scope) required.
- `404`: Quarantined context not found (also returned when the row exists but is no longer quarantined).

---

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