---
title: "Update caption word styles"
method: POST
path: "/projects/{projectId}/captions/words/style"
tags: ["Captions and Themes"]
---

# Update caption word styles

`POST /projects/{projectId}/captions/words/style`

## Request

- Base URL: `https://blitzreels.com/api/v1`
- URL: `https://blitzreels.com/api/v1/projects/{projectId}/captions/words/style`
- Auth: API key in header `Authorization`

Update caption word styles.

## Path parameters

- `projectId` string, required

## Request body

- object
  - `word_ids` string[]
  - `match_text` string
  - `match_pattern` 'numbers' | 'caps' | 'exclamations'
  - `timeline_item_id` string
  - `all` boolean
  - `from_seconds` number
  - `to_seconds` number
  - `style` object, nullable, required
    - `offsetX` number, nullable
    - `offsetY` number, nullable
    - `rotationDeg` number, nullable
    - `scale` number, nullable
    - `fontFamily` string, nullable
    - `fontWeight` string, nullable
    - `color` string, nullable
    - `activeColor` string, nullable
    - `backgroundColor` string, nullable
    - `activeAnimation` 'none' | 'slide-from-bottom' | 'pop' | 'glow' | 'punch', nullable
    - `fontStyle` 'normal' | 'italic', nullable
    - `textTransform` 'none' | 'uppercase', nullable
    - `letterSpacing` number, nullable
    - `opacity` number, nullable
    - `textStrokeColor` string, nullable
    - `textStrokeWidthPx` number, nullable
    - `textStrokeBlurPx` number, nullable
    - `textShadow` string, nullable
    - `glowColor` string, nullable
    - `glowBlurPx` number, nullable
    - `textGradientFrom` string, nullable
    - `textGradientTo` string, nullable
    - `textGradientAngleDeg` number, nullable
    - `backgroundRadiusPx` number, nullable
    - `emojiName` string, nullable
    - `emojiScale` '1' | '2' | '0.5', nullable
    - `isSpecial` boolean, nullable
    - `isKeyword` boolean, nullable
    - `lineBreakBefore` boolean
  - `clear_existing` boolean

## Response `200`

Successful response

- object
  - `success` boolean, required
  - `updated_count` number, required
  - `updated_word_ids` string[]
  - `message` string

## Other responses

- `400`: Invalid input data
- `401`: Authorization not provided
- `403`: Insufficient access
- `500`: Internal server error

---

[API](https://skmtc.dev/blitzreels/apis/blitzreels-api.md) · [All operations](https://skmtc.dev/blitzreels/apis/blitzreels-api/llms.txt) · [OpenAPI document](https://skmtc.dev/blitzreels/apis/blitzreels-api/revisions/35608b12471d?raw)
