Skip to content

Video methods: update

The Video Verbs update as typed SDK methods, with inputs, result, refusals and an example.

Reference for Video, one group of Video methods.

Video.update

Changes the given properties of a Video. Verb page.

TypeScript
interface VideoVerbs {
  update(input: VideoUpdateInput, options?: SB.CallOptions): SB.Call<Video>
}

Emits Video.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Video.
timelinejsonThe ordered scenes on a fixed grid, the only timing truth for picture, voice and captions.
brandBrandThe Brand whose voice, palette and type the Video uses.
offerOfferThe Offer the Video presents, when it presents one.

Returns

OutputTypeRequiredDescription
videoVideorequiredThe Video.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

TypeScript
import { $ } from 'startup-builder'

const video = await $.Video.update({ id: 'video_xVlGG2TxBA', timeline: {} })