# Change definitions key threads threadId

Changes a thread's `subject`, and nothing else. Resolving is deliberately not patchable here — it would be a second, unlabelled way to settle a thread that skips the timeline entry the resolve route writes. Answers the thread.

Access class: `def:read`.

## Endpoint

`PATCH /v1/definitions/{key}/threads/{threadId}`

## Parameters

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

## Request body

Content type: `application/json`.

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

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "createdAt": "string",
    "createdBy": 1.5,
    "definitionKey": "string",
    "id": "",
    "lastMessageAt": "string",
    "messageCount": 1.5,
    "participants": [
      {
        "addedAt": "string",
        "email": "string",
        "isMuted": true,
        "lastReadAt": "string",
        "name": "string",
        "role": "string",
        "userId": 1.5
      }
    ],
    "recordName": "string",
    "resolvedAt": "string",
    "resolvedBy": 1.5,
    "rowId": "",
    "status": "string",
    "subject": "string",
    "unread": 1.5,
    "updatedAt": "string"
  }
}
```

### 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"
}
```
