---
title: "Move the clip bounds (start_s / end_s)"
method: PATCH
path: "/api/clips/{id}"
tags: ["clips"]
---

# Move the clip bounds (start_s / end_s)

`PATCH /api/clips/{id}`

## Request

- Base URL: `https://cliponit.app`
- URL: `https://cliponit.app/api/clips/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `session`
  - OAuth 2 (authorization code, authorization URL `https://cliponit.app/oauth/authorize`, token URL `https://cliponit.app/oauth/token`, scopes: `clips`)

Absolute seconds within the video, duration ≥ 3 s. Keyframes are shifted, cuts/B-roll/emojis outside the new range are dropped, the clip filmstrip is invalidated.

## Request body

- object
  - `start_s` number
  - `end_s` number

## Response `200`

Updated clip

- ClipBase
  - `id` string, uuid, required
  - `video_id` string, uuid, required
  - `position` integer, required: Chronological order
  - `title` string, required
  - `start_s` number, required: Absolute start in the source video (seconds)
  - `end_s` number, required: Absolute end (seconds)
  - `created_at` string, required

## Other responses

- `400`: Validation error — the message names the field, e.g. `champ subtitles.size invalide : attendu 1..3`
- `404`: Resource not found or not owned by the user

---

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