# Mark a thread read

Marks the caller's place in a thread and answers how many messages are STILL unread for them. The count is the answer rather than an empty 200, so a caller can tell 'cleared' from 'you were never on this thread' without a second read.

Access class: `def:read`.

## Endpoint

`POST /v1/definitions/{key}/threads/{threadId}/read`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| key | path | string | Yes |
| threadId | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{
  "body": {},
  "params": {
    ":key": "string",
    ":threadId": ""
  },
  "query": {}
}
```

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "unread": 1.5
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
