# caption.set_style

> Sets or clears the style override of one caption.

Source: https://alexgalhardo.github.io/vukem-video/docs/reference/commands/caption.set_style/

The given object replaces the whole override and is stored as given. null or \{\} clears it. The caption style of the track is not touched.

## Arguments

| Argument | Type | Required | Description |
| --- | --- | --- | --- |
| `item_id` | `string` | yes | A caption. |
| `style` | `object or null` | yes | A partial CaptionStyle replacing the override, or null or \{\} to clear it. |

## Example

As one operation of an `edit` batch (the `edit` tool of MCP, `vukem-video edit --ops`, or `POST /api/v1/projects/{id}/edit`):

```json
{
  "op": "caption.set_style",
  "args": {
    "item_id": "itm_s6t7v8w9x0",
    "style": {
      "highlight": "word",
      "size": 80
    }
  }
}
```

## Errors

[`E_VALIDATION`](/docs/reference/error-codes#e_validation), [`E_NOT_FOUND`](/docs/reference/error-codes#e_not_found), [`E_TYPE_MISMATCH`](/docs/reference/error-codes#e_type_mismatch), [`E_FONT_UNKNOWN`](/docs/reference/error-codes#e_font_unknown)

## Scope and phase

Scope `edit`, phase `alpha`. Run `vukem-video command:help caption.set_style` for the same description from the binary.
