Create/Update Video Asset Chapters
This endpoint will create/update video asset chapters.
Path Parameters
- Type: stringasset
_id requiredGumlet asset ID
Body
application/json
- Type: array object[]chaptersrequired
Responses
- application/json
- application/json
Request Example for post/video/assets/{asset_id}/chapters
import Gumlet from '@gumlet/nodejs-sdk';
const client = new Gumlet({
apiKey: process.env['API_KEY'], // defaults to the API_KEY env var
});
const videoAsset = await client.videoAssets.createUpdateChapter('assetId', {
chapters: [
{ label: 'Chapter 1', startTime: 0 },
{ label: 'Chapter 2', startTime: 10 },
],
});
console.log(videoAsset);
{}
