---
title: "Archive a test case"
method: POST
path: "/api/cases/{caseId}/archive"
tags: ["Test Cases"]
---

# Archive a test case

`POST /api/cases/{caseId}/archive`

## Request

- Base URL: `https://aximo.autify.com`
- URL: `https://aximo.autify.com/api/cases/{caseId}/archive`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/autify/apis/aximo-api/docs/api/cases/:caseId/archive/post.ts> (a function with typed inputs; its response is checked against the schema)

Archives (soft-deletes) a test case. The case is hidden from case lists,
directory counts, and plan membership, and can no longer be updated or
run, but its plan membership rows and run history are kept and the case
stays readable by id with `archivedAt` set. Idempotent: archiving an
already-archived case succeeds.

## Path parameters

- `caseId` string, uuid, required

## Response `200`

Case archived.

- object
  - `archived` boolean, required

## Other responses

- `400`: Invalid case ID.
- `401`: Missing or invalid API key.
- `404`: Test case not found.
- `429`: Rate limit exceeded — e.g. the daily session limit was reached for the organization, or too many API requests were sent in a short window (retry after the number of seconds in the `Retry-After` header).
- `500`: Unexpected server error.

---

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