Video API, gRPC: ChannelService.Create
Creates a new channel in the specified organization.
gRPC request
rpc Create (CreateChannelRequest) returns (operation.Operation)
CreateChannelRequest
{
"organization_id": "string",
"title": "string",
"description": "string",
"labels": "map<string, string>",
"settings": {
"advertisement": {
// Includes only one of the fields `yandex_direct`
"yandex_direct": {
"enable": "bool",
"page_id": "int64",
"category": "int64"
}
// end of the list of possible fields
},
"referer_verification": {
"enable": "bool",
"allowed_domains": [
"string"
]
},
"video": {
"show_source_file_before_transcoding": "bool"
}
}
}
|
Field |
Description |
|
organization_id |
string Required field. ID of the organization where the channel will be created. The maximum string length in characters is 50. |
|
title |
string Required field. Title of the channel to be displayed in interfaces. The maximum string length in characters is 300. |
|
description |
string Detailed description of the channel's purpose and content. The maximum string length in characters is 4000. |
|
labels |
object (map<string, string>) Custom user-defined labels as key:value pairs. The maximum string length in characters for each value is 63. The maximum string length in characters for each key is 63. Each key must match the regular expression |
|
settings |
Configuration settings for the channel's behavior and features. |
ChannelSettings
Configuration settings for the channel's behavior and features.
These settings apply to all content in the channel and control
various aspects of how the channel and its content behave.
|
Field |
Description |
|
advertisement |
Settings for advertisement display and behavior. |
|
referer_verification |
Settings for HTTP Referer verification to control content embedding. |
|
video |
Settings for displaying video |
AdvertisementSettings
Settings for advertisement display and behavior in the channel.
These settings control whether and how advertisements are shown
with content in this channel, including both videos and streams.
|
Field |
Description |
|
yandex_direct |
Yandex.Direct advertisement provider settings. Includes only one of the fields Specifies the advertisement provider to use. |
YandexDirect
Configuration for the Yandex.Direct advertisement provider.
These settings are specific to the Yandex.Direct advertising platform.
|
Field |
Description |
|
enable |
bool Enables or disables Partner Ad for both Live and VOD content. |
|
page_id |
int64 Yandex.Direct page identifier. |
|
category |
int64 Yandex.Direct category identifier. |
RefererVerificationSettings
Settings for HTTP Referer verification to control where content can be embedded.
When enabled, the system checks the HTTP Referer request header to ensure
that content is only embedded on allowed domains.
|
Field |
Description |
|
enable |
bool Enables or disables Referer verification for this channel. |
|
allowed_domains[] |
string List of domains allowed to embed content from this channel. The string length in characters for each value must be 4-255. Each value must match the regular expression |
ChannelVideoSettings
Settings for displaying video
|
Field |
Description |
|
show_source_file_before_transcoding |
bool Instruct the player to allow playback of the raw source file while |
operation.Operation
{
"id": "string",
"description": "string",
"created_at": "google.protobuf.Timestamp",
"created_by": "string",
"modified_at": "google.protobuf.Timestamp",
"done": "bool",
"metadata": "google.protobuf.Any",
// Includes only one of the fields `error`, `response`
"error": "google.rpc.Status",
"response": "google.protobuf.Any"
// end of the list of possible fields
}
An Operation resource. For more information, see Operation.
|
Field |
Description |
|
id |
string ID of the operation. |
|
description |
string Description of the operation. 0-256 characters long. |
|
created_at |
Creation timestamp. |
|
created_by |
string ID of the user or service account who initiated the operation. |
|
modified_at |
The time when the Operation resource was last modified. |
|
done |
bool If the value is |
|
metadata |
Service-specific metadata associated with the operation. |
|
error |
The error result of the operation in case of failure or cancellation. Includes only one of the fields The operation result. |
|
response |
The normal response of the operation in case of success. Includes only one of the fields The operation result. |