# Change a blast's words

Edits a blast that is still a draft: `name`, `subject`, `body`, `templateId`, `audienceFilter`. An absent field leaves the column alone. Past `draft` the words are frozen with the audience — a scheduled or sent blast is the record of what a workspace said to a list of people, so the edit is refused rather than rewriting history. Who it reaches is a separate act (`post_blasts_id_audience`), also draft-only.

Access class: `workspace`.

## Endpoint

`PATCH /v1/blasts/{id}`

## Parameters

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

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "audienceFilter": {},
    "body": "string",
    "name": "string",
    "subject": "string",
    "templateId": 1
  },
  "params": {
    ":id": "string"
  },
  "query": {}
}
```

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "audienceFilter": {},
    "audienceFrozenAt": "string",
    "body": "string",
    "cancellationReason": "string",
    "cancelledAt": "string",
    "createdAt": "string",
    "createdByUserId": 1,
    "detail": {},
    "id": 1,
    "kind": "string",
    "name": "string",
    "retargetOfBlastId": 1,
    "scheduledAt": "string",
    "sentAt": "string",
    "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"
}
```
