---
schema: ClipJob
title: ClipJob
description: "One request to cut an analysis's video into clips, and its outcome."
url: "https://mediaseer.ai/docs/api/schemas/clipjob/"
---

# ClipJob

One request to cut an analysis's video into clips, and its outcome.

| Field | Description |
| - | - |
| `id` string, required | Identifier of the clip job. |
| `analysisId` string, required | The `id` of the analysis whose video the clips are cut from. |
| `state` [ClipJobState](https://mediaseer.ai/docs/api/schemas/clipjobstate/), required | Where the job is. Brought up to date when the job is read. |
| `mode` [ClipMode](https://mediaseer.ai/docs/api/schemas/clipmode/), required | What the job makes. |
| `prompt` string, optional | The prompt given at create. Only set with `PROMPTED_CLIPS`. |
| `options` [ClipOptions](https://mediaseer.ai/docs/api/schemas/clipoptions/), required | The options the job uses, defaults included. |
| `createdAt` string (date-time), required | When the job was created. |
| `updatedAt` string (date-time), required | When the job last changed. |
| `finishedAt` string (date-time), optional | When the job became `READY` or `FAILED`. |
| `error` [ClipJobError](https://mediaseer.ai/docs/api/schemas/clipjoberror/), optional | Why the job failed. Only set in state `FAILED`. |
| `episodes` array of [ClipEpisode](https://mediaseer.ai/docs/api/schemas/clipepisode/), optional | The clips, in order; their number is the episode count. Only set in state `READY`, and then with at least one clip. |
| `editable` boolean, optional | Whether the web app can open the job's clips in its editor now: the job is `READY` and this environment offers the editor. Clips are edited only in the web app. Treat an absent `editable` as `false`. |

Uses [`ClipJobState`](https://mediaseer.ai/docs/api/schemas/clipjobstate/), [`ClipMode`](https://mediaseer.ai/docs/api/schemas/clipmode/), [`ClipOptions`](https://mediaseer.ai/docs/api/schemas/clipoptions/), [`ClipJobError`](https://mediaseer.ai/docs/api/schemas/clipjoberror/), [`ClipEpisode`](https://mediaseer.ai/docs/api/schemas/clipepisode/).
