v1

latestOpenAPI 3.0.42026-07-26263457588.1 KB
Stream Video Library

Update Video Library

post/videolibrary/{id}

Path parameters

idinteger required

The ID of the Video Library to update

Request body

Namestring nullable

(Optional) Sets name of the video library

CustomHTMLstring nullable

(Optional) Sets the player custom HTML code

PlayerKeyColorstring nullable

(Optional) Sets the player key control color

EnableTokenAuthenticationboolean nullable

(Optional) Determines if the token authentication should be enabled

EnableTokenIPVerificationboolean nullable

(Optional) Determines if the token IP verification should be enabled

ResetTokenboolean nullable

(Optional) Set to true to reset the CDN and embed view token key

WatermarkPositionLeftinteger nullable

(Optional) Sets the left offset of the watermark position (in %)

WatermarkPositionTopinteger nullable

(Optional) Sets the top offset of the watermark position (in %)

WatermarkWidthinteger nullable

(Optional) Sets the width of the watermark (in %)

WatermarkHeightinteger nullable

(Optional) Sets the height of the watermark (in %)

EnabledResolutionsstring nullable

(Optional) Sets the enabled resolutions for the transcoding. At least one resolution should be enabled. Possible values: 240p, 360p, 480p, 720p, 1080p, 1440p, 2160p

ViAiPublisherIdstring nullable

(Optional) Sets the vi.ai publisher ID

VastTagUrlstring nullable

(Optional) Sets the Vast tag URL

WebhookUrlstring nullable

(Optional) Sets the webhook API url

CaptionsFontSizeinteger nullable

(Optional) Sets the captions display font size

CaptionsFontColorstring nullable

(Optional) Sets the captions display font color

CaptionsBackgroundstring nullable

(Optional) Sets the captions display background color

UILanguagestring nullable

(Optional) Sets the UI language of the video player.

AllowEarlyPlayboolean nullable

(Optional) Determines if the Early-Play feature should be enabled. Enabling this will enable Expose Originals.

PlayerTokenAuthenticationEnabledboolean nullable

(Optional) Determines if the token authentication should be enabled.

BlockNoneReferrerboolean nullable

(Optional) Determines if requests without a referer should be blocked.

EnableMP4Fallbackboolean nullable

(Optional) Determines if MP4 fallback should be enabled for this library.

KeepOriginalFilesboolean nullable

(Optional) Determines if the original file should be kept after the video is processed.

AllowDirectPlayboolean nullable

(Optional) Determines if direct play URLs should be enabled for the library

EnableDRMboolean nullable

(Optional) Determines if MediaCage DRM should be enabled for this library

DrmVersion0 | 1 | 2

0 = Basic 1 = Enterprise 2 = BasicV2

Controlsstring nullable

(Optional) The comma separated list of controls that will be displayed in the video player. Possible values: play-large, play, progress, current-time, mute, volume, captions, settings, pip, airplay, fullscreen.

PlaybackSpeedsstring nullable

(Optional) The comma separated list of playback speeds that will be available in the video player. Possible values: 0.25,0.5,0.75,1.0,1.25,1.5,1.75,2.0,2.5,3,3.5,4

Bitrate240pinteger nullable

(Optional) The bitrate used for encoding 240p videos

Bitrate360pinteger nullable

(Optional) The bitrate used for encoding 360p videos

Bitrate480pinteger nullable

(Optional) The bitrate used for encoding 480p videos

Bitrate720pinteger nullable

(Optional) The bitrate used for encoding 720p videos

Bitrate1080pinteger nullable

(Optional) The bitrate used for encoding 1080p videos

Bitrate1440pinteger nullable

(Optional) The bitrate used for encoding 1440p videos

Bitrate2160pinteger nullable

(Optional) The bitrate used for encoding 2160p videos

ShowHeatmapboolean nullable

(Optional) Determines if the video watch heatmap should be displayed in the player.

EnableContentTaggingboolean nullable

(Optional) Determines if content tagging should be enabled for this library.

FontFamilystring nullable

(Optional) The captions font family.

EnableTranscribingboolean nullable

(Optional) Determines if the automatic audio transcribing is currently enabled for this zone.

EnableTranscribingTitleGenerationboolean nullable

(Optional) Determines if automatic transcribing title generation is currently enabled.

EnableTranscribingDescriptionGenerationboolean nullable

(Optional) Determines if automatic transcribing description generation is currently enabled.

EnableTranscribingChaptersGenerationboolean nullable

(Optional) Determines if automatic transcribing chapters generation is currently enabled.

EnableTranscribingMomentsGenerationboolean nullable

(Optional) Determines if automatic transcribing moments generation is currently enabled.

TranscribingCaptionLanguagesstring[] nullable

(Optional) The list of languages that the captions will be automatically transcribed to.

EnableCaptionsInPlaylistboolean nullable

(Optional) Determines if any associated captions will be automatically signaled in the HLS master playlist via EXT-X-MEDIA tags, allowing client players to show captions.

RememberPlayerPositionboolean nullable

(Optional) Determines if the player will automatically remember the playback position.

EnableMultiAudioTrackSupportboolean nullable

(Optional) Determines if multiple output audio track support is enabled on video library.

UseSeparateAudioStreamboolean nullable

(Optional) Determines whether output audio stream should be split from video stream segments.

JitEncodingEnabledboolean nullable

(Optional) Determines whether JIT encoding should be used for the library. Supported in premium encoding only.

EncodingTier0 | 1

0 = Free 1 = Premium

OutputCodecsstring nullable

(Optional) Specifies which video codecs are used for encoding, provided as a comma-separated (CSV) string. Free encoding tier supports only x264. A premium encoding tier adds support for vp9, hevc, and av1.

PlayerVersioninteger nullable

(Optional) Sets player version used for this library

RemoveMetadataFromFallbackVideosboolean nullable

(Optional) Marks whether all potential video metadata should be removed from the fallback files

ScaleVideoUsingBothDimensionsboolean nullable

(Optional) Marks whether videos should be scaled using both dimensions. Prevents videos being upscaled or unexpected aspect ratio changes.

ExposeOriginalsboolean nullable

(Optional) Marks whether original video files should be exposed via CDN. Originals are not protected by DRM. Enabling Early-Play will enable this.

ExposeVideoMetadataboolean nullable

(Optional) Marks whether video metadata in form of schema meta tags and LD+JSON should be exposed.

EnableCompactControlsboolean nullable

(Optional) Marks whether compact controls should be enabled for the player.

Response

The updated video library

Idinteger
Namestring nullable

The name of the Video Library.

VideoCountinteger

The number of videos in the video library

TrafficUsageinteger

The amount of traffic usage this month

StorageUsageinteger

The total amount of storage used by the library

DateCreatedstring date-time

The date when the video library was created

DateModifiedstring date-time

The date when the video library was last modified

ReplicationRegionsstring[] nullable

The geo-replication regions of the underlying storage zone

ApiKeystring nullable

The API key used for authenticating with the video library

ReadOnlyApiKeystring nullable

The read-only API key used for authenticating with the video library

HasWatermarkboolean

Determines if the video library has a watermark configured

WatermarkPositionLeftinteger

The left offset of the watermark position (in %)

WatermarkPositionTopinteger

The top offset of the watermark position (in %)

WatermarkWidthinteger

The width of the watermark (in %)

PullZoneIdinteger

The ID of the connected underlying pull zone

StorageZoneIdinteger

The ID of the connected underlying storage zone

WatermarkHeightinteger

The height of the watermark (in %)

EnabledResolutionsstring nullable

The comma separated list of enabled resolutions

ViAiPublisherIdstring nullable

The vi.ai publisher id for advertising configuration

VastTagUrlstring nullable

The URL of the VAST tag endpoint for advertising configuration

WebhookUrlstring nullable

The webhook URL of the video library

CaptionsFontSizeinteger

The captions display font size

CaptionsFontColorstring nullable

The captions display font color

CaptionsBackgroundstring nullable

The captions display background color

UILanguagestring nullable

The UI language of the player

AllowEarlyPlayboolean nullable

Determines if the Early-Play feature is enabled

PlayerTokenAuthenticationEnabledboolean

Determines if the player token authentication is enabled

AllowedReferrersstring[] nullable

The list of allowed referrer domains allowed to access the library

BlockedReferrersstring[] nullable

The list of blocked referrer domains blocked from accessing the library

BlockNoneReferrerboolean

Determines if the requests without a referrer are blocked

EnableMP4Fallbackboolean

Determines if the MP4 fallback feature is enabled

KeepOriginalFilesboolean

Determines if the original video files should be stored after encoding

AllowDirectPlayboolean

Determines direct play URLs are enabled for the library

EnableDRMboolean

Determines if the DRM is enabled

DrmVersion0 | 1 | 2

0 = Basic 1 = Enterprise 2 = BasicV2

Bitrate240pinteger

The bitrate used for encoding 240p videos

Bitrate360pinteger

The bitrate used for encoding 360p videos

Bitrate480pinteger

The bitrate used for encoding 480p videos

Bitrate720pinteger

The bitrate used for encoding 720p videos

Bitrate1080pinteger

The bitrate used for encoding 1080p videos

Bitrate1440pinteger

The bitrate used for encoding 1440p videos

Bitrate2160pinteger

The bitrate used for encoding 2160p videos

ApiAccessKeystring nullable
ShowHeatmapboolean

Determines if the video watch heatmap should be displayed in the player.

EnableContentTaggingboolean

Determines if content tagging should be enabled for this library.

PullZoneType0 | 1

0 = Premium 1 = Volume

CustomHTMLstring nullable

The custom HTMl that is added into the head of the HTML player.

Controlsstring nullable

The list of controls on the video player.

PlaybackSpeedsstring nullable

The list of playback speeds available in the video player.

PlayerKeyColorstring nullable

The key color of the player.

FontFamilystring nullable

The captions font family.

WatermarkVersioninteger
EnableTranscribingboolean

Determines if the automatic audio transcribing is currently enabled for this zone.

EnableTranscribingTitleGenerationboolean

Determines if automatic transcribing title generation is currently enabled.

EnableTranscribingDescriptionGenerationboolean

Determines if automatic transcribing description generation is currently enabled.

EnableTranscribingChaptersGenerationboolean

Determines if automatic transcribing chapters generation is currently enabled.

EnableTranscribingMomentsGenerationboolean

Determines if automatic transcribing moments generation is currently enabled.

TranscribingCaptionLanguagesstring[] nullable

The list of languages that the captions will be automatically transcribed to.

EnableCaptionsInPlaylistboolean nullable

Determines if any associated captions will be automatically signaled in the HLS master playlist via EXT-X-MEDIA tags, allowing client players to show captions.

RememberPlayerPositionboolean

Determines if the player will automatically remember the playback position.

EnableMultiAudioTrackSupportboolean

Determines if multiple output audio track support is enabled on video library.

UseSeparateAudioStreamboolean

Determines whether output audio stream should be split from video stream segments.

JitEncodingEnabledboolean

Determines whether JIT encoding should be used for the library. Supported in premium encoding only.

EncodingTier0 | 1

0 = Free 1 = Premium

OutputCodecsstring nullable

Specifies which video codecs are used for encoding, provided as a comma-separated (CSV) string. Free encoding tier supports only x264. A premium encoding tier adds support for vp9, hevc, and av1.

DrmBasePriceOverridenumber nullable

DRM (enterprise) monthly base price for this video library if it differs from list price.

DrmCostPerLicenseOverridenumber nullable

DRM (enterprise) cost per license for this video library if it differs from list price.

TranscribingPriceOverridenumber nullable
PremiumEncodingPriceOverridenumber nullable
MonthlyChargesTranscribingnumber
MonthlyChargesPremiumEncodingnumber
MonthlyChargesEnterpriseDrmnumber
FeatureFlagsstring nullable
PlayerVersioninteger
RemoveMetadataFromFallbackVideosboolean

Marks whether all potential video metadata should be removed from the fallback files. Default false.

ScaleVideoUsingBothDimensionsboolean

Marks whether videos should be scaled using both dimensions. Prevents videos being upscaled or unexpected aspect ratio changes. Default true.

ExposeOriginalsboolean

Marks whether original video files should be exposed via CDN.

ExposeVideoMetadataboolean

Marks whether video metadata in form of schema meta tags and LD+JSON should be exposed.

EnableCompactControlsboolean

Marks whether compact controls should be enabled for the player.