Skip to content

Schemas

ClipJob

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

FieldDescription
id string, requiredIdentifier of the clip job.
analysisId string, requiredThe id of the analysis whose video the clips are cut from.
state ClipJobState, requiredWhere the job is. Brought up to date when the job is read.
mode ClipMode, requiredWhat the job makes.
prompt string, optionalThe prompt given at create. Only set with PROMPTED_CLIPS.
options ClipOptions, requiredThe options the job uses, defaults included.
createdAt string (date-time), requiredWhen the job was created.
updatedAt string (date-time), requiredWhen the job last changed.
finishedAt string (date-time), optionalWhen the job became READY or FAILED.
error ClipJobError, optionalWhy the job failed. Only set in state FAILED.
episodes array of ClipEpisode, optionalThe clips, in order; their number is the episode count. Only set in state READY, and then with at least one clip.
editable boolean, optionalWhether 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, ClipMode, ClipOptions, ClipJobError, ClipEpisode.