---
title: "Patch caption text"
method: PATCH
path: "/projects/{projectId}/captions/{captionId}"
tags: ["Captions and Themes"]
---

# Patch caption text

`PATCH /projects/{projectId}/captions/{captionId}`

## Request

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

Patch caption text.

## Path parameters

- `projectId` string, required
- `captionId` string, required

## Request body

- object
  - `text` string
  - `start_units` integer
  - `end_units` integer

## Response `200`

Successful response

- object
  - `success` boolean, required
  - `caption` object, required
    - `caption_id` string, required
    - `timeline_item_id` string, nullable, required
    - `project_id` string, required
    - `text` string, required
    - `start_units` number, nullable, required
    - `end_units` number, nullable, required
    - `start_seconds` number, nullable, required
    - `end_seconds` number, nullable, required
    - `words` object[], required
      - `id` string, required
      - `word` string, required
      - `order_index` number, required
      - `start_units` number, nullable, required
      - `end_units` number, nullable, required
      - `start_seconds` number, nullable, required
      - `end_seconds` number, nullable, required
      - `paragraph_index` number, nullable, required
      - `is_emphasis` boolean, required
      - `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
  - `updated_words` number, required
  - `inserted_words` number, required
  - `deleted_words` number, required
  - `message` string, required

## Other responses

- `400`: Invalid input data
- `401`: Authorization not provided
- `403`: Insufficient access
- `404`: Not found
- `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)
