---
title: PATCH · Update viewer state
published: true
tier: free
index: 2
---

# PATCH · Update viewer state

`PATCH /api/v1/apps/{appId}/results/{resultId}/state`

**Authorization.** App token with `state:write`.

**Request.** Send `Content-Type: application/json` and one or more declared keys with a single declared value.

```json
{"keys":["issue-1"],"value":"done"}
```

**Response · 204.** Empty body. All listed keys change together. An unknown key or value returns `422 invalid_request` and leaves the previous state intact.
