---
title: "Trim or extend a clip"
method: POST
path: "/jobs/{id}/clips/{index}/adjust"
---

# Trim or extend a clip

`POST /jobs/{id}/clips/{index}/adjust`

## Request

- Base URL: `https://katto.tech/api/v1`
- URL: `https://katto.tech/api/v1/jobs/{id}/clips/{index}/adjust`
- Auth: HTTP bearer

Moves the clip's start and/or end relative to its ORIGINAL bounds (repeated calls do not accumulate; positive extends, negative trims) and re-renders it, through the same pipeline as the dashboard's Adjust length. The result must last 3-180 s and stay inside the source. Extending re-cuts from the source, kept 7 days (410 after). Versioned: the original clip is kept. No video quota. Requires write scope.

## Path parameters

- `id` string, uuid, required
- `index` integer, required

## Request body

- object
  - `start_offset_seconds` number: Positive = start earlier (extend), negative = start later (trim).
  - `end_offset_seconds` number: Positive = end later (extend), negative = end earlier (trim).

## Response `202`

Re-render queued

- object
  - `rerender_id` string
  - `status` 'queued'
  - `status_url` string, uri: Poll GET /jobs/{id}/rerenders/{rerender_id}.
  - `start_seconds` number: New start, in source seconds.
  - `end_seconds` number: New end, in source seconds.
  - `duration_seconds` number
  - `extended` boolean: true when the clip goes past its original bounds.

## Other responses

- `400`: Error
- `401`: Error
- `403`: Error
- `404`: Error
- `409`: Error
- `410`: Error
- `429`: Error
- `500`: Error

---

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