> For the complete documentation index, see [llms.txt](https://docs.roboflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roboflow.com/developer/rest-api/vision-events/archive-a-use-case.md).

# Archive a Use Case

Archive a use case by setting its status to `inactive`. Archived use cases are hidden from listings by default and will reject new event ingestion.

**Required scope:** `vision-events:manage`

{% openapi src="/files/XCSsl1XUH9tiFJObaN6D" path="/vision-events/use-cases/{useCaseId}/archive" method="post" %}
[openapi.yaml](https://1284666567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fe5GEiPeDoFksvZv1vH3A%2Fuploads%2Fgit-blob-dfdc1702ad3d1a62ad0a661e9609f6bbe2fc8d4c%2Fopenapi.yaml?alt=media)
{% endopenapi %}

### Path Parameters

* **`useCaseId`** (string, required): The ID of the use case to archive.

### Example Request

```bash
curl -X POST "https://api.roboflow.com/vision-events/use-cases/a1b3c8e1/archive" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

### Example Response

{% tabs %}
{% tab title="200" %}

```json
{
  "success": true
}
```

{% endtab %}

{% tab title="404" %}

```json
{
  "error": "Solution not found"
}
```

{% endtab %}

{% tab title="403" %}

```json
{
  "error": "Insufficient permissions for this resource."
}
```

{% endtab %}
{% endtabs %}

### Notes

* Archiving is a soft delete. The use case and its events are preserved but hidden from active listings.
* To view archived use cases, use the [List Use Cases](/developer/rest-api/vision-events/list-use-cases.md) endpoint with `status=inactive`.
* You can restore an archived use case using the [Unarchive a Use Case](/developer/rest-api/vision-events/unarchive-a-use-case.md) endpoint.
