# Update an instance

`PATCH /v1/outputs/{id}/instances/{instance}`

Renames an instance or changes its data. If the instance is on air, the graphic updates straight away.

## Path parameters

- `id` (string, required): The output's id.
- `instance` (string, required): The instance's id.

## Body

- `name` (string): A new name, up to 120 characters.
- `data` (object): Values to merge into the instance's data, by field key. `null` removes a key, so the field shows its default.

## Response

The instance as it is now.

## Example request

```sh
curl -X PATCH https://api.airframe.tv/v1/outputs/OUTPUT_ID/instances/4c1d… \
  -H "Authorization: Bearer $AIRFRAME_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "data": {
    "title": "Head coach, Northside FC"
  }
}'
```

### 200 OK

```json
{
  "id": "4c1d…",
  "componentId": "lower-third",
  "name": "Jane Doe, head coach",
  "data": {
    "name": "Jane Doe",
    "title": "Head coach, Northside FC"
  }
}
```

### 404 Not found

```json
{
  "error": "No such instance",
  "code": "not_found"
}
```
