# Summarise a call recording

Write the recordings summary from its transcript, replacing any summary already stored and keeping the transcript. Refuses with 409 when there is no transcript yet.

Access class: `workspace`.

## Endpoint

`POST /v1/comms/recordings/{id}/summarise`

## Parameters

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

## Request body

Content type: `application/json`.

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

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "recording": {
    "contactIdentifier": "string",
    "contactName": "string",
    "contentType": "string",
    "conversationId": 1,
    "createdAt": "string",
    "definitionId": "",
    "direction": "string",
    "durationSeconds": 1,
    "fileId": "",
    "fileName": "string",
    "id": "",
    "memberUserId": 1,
    "messageId": 1,
    "occurredAt": "string",
    "provider": "string",
    "providerRecordingId": "",
    "rowId": "",
    "sizeBytes": 1,
    "status": "string",
    "summarisedAt": "string",
    "summary": "string",
    "summaryError": "string",
    "summaryModel": "string",
    "summaryTitle": "string",
    "transcript": "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"
}
```
