> 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/update-a-use-case.md).

# Update a Use Case

Update the name or status of an existing use case.

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

{% openapi src="/files/XCSsl1XUH9tiFJObaN6D" path="/vision-events/use-cases/{useCaseId}" method="put" %}
[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 update.

### Request Body Parameters

At least one of the following fields must be provided:

* **`name`** (string, optional): A new name for the use case. Must be between 1 and 256 characters. Must be unique within the workspace.
* **`status`** (string, optional): The new status. One of `active` or `inactive`.

### Example Request

```bash
curl -X PUT "https://api.roboflow.com/vision-events/use-cases/a1b3c8e1" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Manufacturing Line 2"
  }'
```

### Example Response

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

```json
{
  "id": "a1b3c8e1",
  "name": "Manufacturing Line 2"
}
```

{% endtab %}

{% tab title="400" %}

```json
{
  "error": "A solution with this name already exists"
}
```

{% endtab %}

{% tab title="404" %}

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

{% endtab %}

{% tab title="403" %}

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

{% endtab %}
{% endtabs %}
