# Change message-drafts id

Fix a queued draft's recipient, subject or body before anyone approves it. An absent field leaves the column. Only a draft still in 'draft' status can be edited — once approved or cancelled its words are the record of what was decided, and the edit answers not-found.

Access class: `workspace`.

## Endpoint

`PATCH /v1/message-drafts/{id}`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| id | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "body": "string",
    "recipient": "string",
    "subject": "string"
  },
  "params": {
    ":id": "string"
  },
  "query": {}
}
```

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "aiFlaggedFigures": [
      "string"
    ],
    "aiGenerated": true,
    "aiIntent": "string",
    "aiModel": "string",
    "aiPromptHash": "string",
    "approvedAt": "string",
    "approvedByUserId": 1,
    "body": "string",
    "cancellationReason": "string",
    "cancelledAt": "string",
    "channel": "string",
    "createdAt": "string",
    "createdByKind": "string",
    "createdByUserId": 1,
    "detail": {},
    "entityId": 1,
    "entityKind": "string",
    "id": 1,
    "recipient": "string",
    "recordDefinitionKey": "string",
    "recordRowId": "",
    "ruleId": 1,
    "status": "string",
    "subject": "string",
    "templateId": 1,
    "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"
}
```
