---
title: "Edits one of a video's or audio file's AI outputs: the subtitles' cues, or the transcript's, summary's or chapters' content."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.sherpo.io/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Sherpo merchant API › file

`PATCH /v1/stores/{store}/assets/{asset}/output`

## Authentication

- `bearer`, http, header `Authorization`, scopes: `file:write`

## Path parameters

- `store` (`updateMediaOutput.path.store`; string, required) — The store's id.
- `asset` (`updateMediaOutput.path.asset`; string, required)
  - minLength 1

## Request body

_Required._

- `kind` (`updateMediaOutput.kind`; string, required)
  - one of `"summary"`, `"chapters"`, `"transcript"`, `"subtitles"`
- `content` (`updateMediaOutput.content`; any of, required) — The content the output's kind takes: `cues`, `text`, `summary` with `key_points`, or `chapters`.
  - any of: `object`, `object`, `object`, `object`

## Example request

```json
{
  "kind": "summary",
  "content": {
    "cues": [
      {
        "start": 86400,
        "end": 86400,
        "text": "string"
      }
    ]
  }
}
```

## Code samples

### cURL

```bash
curl --request PATCH \
  --url 'https://api.sherpo.io/merchant/v1/stores/<store>/assets/<asset>/output' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "kind": "summary",
  "content": {
    "cues": [
      {
        "start": 86400,
        "end": 86400,
        "text": "string"
      }
    ]
  }
}
'
```

### TypeScript

```typescript
const url = 'https://api.sherpo.io/merchant/v1/stores/<store>/assets/<asset>/output';
const options = {
  method: 'PATCH',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({kind: 'summary', content: {cues: [{start: 86400, end: 86400, text: 'string'}]}})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.sherpo.io/merchant/v1/stores/<store>/assets/<asset>/output"

payload = {
    "kind": "summary",
    "content": { "cues": [
            {
                "start": 86400,
                "end": 86400,
                "text": "string"
            }
        ] }
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Edits one of a video's or audio file's AI outputs: the subtitles' cues, or the transcript's, summary's or chapters' content.

#### Example

```json
{
  "kind": "string",
  "asset_id": "string",
  "status": "string",
  "has_content": true,
  "revision": 0,
  "language": "string",
  "reason": "string",
  "bytes": 0,
  "deadline": "string",
  "updated_at": "string",
  "published_at": "string",
  "created_at": "string"
}
```

- `kind` (`updateMediaOutput.response.200.kind`; string, required)
- `asset_id` (`updateMediaOutput.response.200.asset_id`; string, required)
- `status` (`updateMediaOutput.response.200.status`; string, required)
- `has_content` (`updateMediaOutput.response.200.has_content`; boolean, required) — Whether content landed, which a run still generating or one that failed may keep from before.
- `revision` (`updateMediaOutput.response.200.revision`; number, required) — The file's revision the content came from, or the running generation reads.
- `language` (`updateMediaOutput.response.200.language`; any of, required)
  - any of: `string`, `null`
- `reason` (`updateMediaOutput.response.200.reason`; any of, required)
  - any of: `string`, `null`
- `bytes` (`updateMediaOutput.response.200.bytes`; any of, required) — The output's size in bytes; null when it is charged nothing.
  - any of: `number`, `null`
- `deadline` (`updateMediaOutput.response.200.deadline`; any of, required)
  - any of: `string`, `null`
- `updated_at` (`updateMediaOutput.response.200.updated_at`; any of, required)
  - any of: `string`, `null`
- `published_at` (`updateMediaOutput.response.200.published_at`; any of, required)
  - any of: `string`, `null`
- `created_at` (`updateMediaOutput.response.200.created_at`; any of, required)
  - any of: `string`, `null`

### default

A problem; see https://api.sherpo.io/merchant/docs/errors.

#### Example

```json
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "context": {},
  "reached_core": true,
  "core_answer": "string"
}
```

- `type` (`updateMediaOutput.response.default.type`; string, required)
  - format `uri`
- `title` (`updateMediaOutput.response.default.title`; string, required)
- `status` (`updateMediaOutput.response.default.status`; integer, required)
- `detail` (`updateMediaOutput.response.default.detail`; string, required)
- `code` (`updateMediaOutput.response.default.code`; string, optional)
- `context` (`updateMediaOutput.response.default.context`; object, optional)
- `reached_core` (`updateMediaOutput.response.default.reached_core`; boolean, optional)
- `core_answer` (`updateMediaOutput.response.default.core_answer`; string, optional)


Source: https://docs.sherpo.io/merchant-api/reference/update-media-output/index.md
