# Manage Use Cases

Each vision event is associated with a use case. The Python SDK provides methods to create, list, rename, archive, and unarchive use cases.

## List Use Cases

```python
import roboflow

roboflow.login()

rf = roboflow.Roboflow()
ws = rf.workspace()

result = ws.list_vision_event_use_cases()

for uc in result["useCases"]:
    print(uc["id"], uc["name"], uc.get("status"))
```

You can filter by status:

```python
# List only active use cases
result = ws.list_vision_event_use_cases(status="active")
```

## Create a Use Case

```python
result = ws.create_vision_event_use_case("manufacturing-qa")
use_case_id = result["id"]
print(f"Created use case: {use_case_id}")
```

## Rename a Use Case

```python
ws.rename_vision_event_use_case("a1b3c8e1", "updated-name")
```

## Archive a Use Case

```python
ws.archive_vision_event_use_case("a1b3c8e1")
```

## Unarchive a Use Case

```python
ws.unarchive_vision_event_use_case("a1b3c8e1")
```

For more details on use case management, see the [REST API reference](/developer/rest-api/vision-events/list-use-cases.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.roboflow.com/developer/python-sdk/vision-events/manage-use-cases.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
