Video API, REST: Channel.Create
Creates a new channel in the specified organization.
HTTP request
POST https://video.api.cloud.yandex.net/video/v1/channels
Body parameters
{
"organizationId": "string",
"title": "string",
"description": "string",
"labels": "object",
"settings": {
"advertisement": {
// Includes only one of the fields `yandexDirect`
"yandexDirect": {
"enable": "boolean",
"pageId": "string",
"category": "string"
}
// end of the list of possible fields
},
"refererVerification": {
"enable": "boolean",
"allowedDomains": [
"string"
]
}
}
}
|
Field |
Description |
|
organizationId |
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. No more than 64 per resource. The maximum string length in characters for each value is 63. Each value 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. |
|
refererVerification |
Settings for HTTP Referer verification to control content embedding. |
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 |
|
yandexDirect |
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 |
boolean Enables or disables Partner Ad for both Live and VOD content. |
|
pageId |
string (int64) Yandex.Direct page identifier. |
|
category |
string (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 |
boolean Enables or disables Referer verification for this channel. |
|
allowedDomains[] |
string List of domains allowed to embed content from this channel. Each value must match the regular expression |
Response
HTTP Code: 200 - OK
{
"id": "string",
"description": "string",
"createdAt": "string",
"createdBy": "string",
"modifiedAt": "string",
"done": "boolean",
"metadata": {
"channelId": "string"
},
// Includes only one of the fields `error`, `response`
"error": {
"code": "integer",
"message": "string",
"details": [
"object"
]
},
"response": {
"id": "string",
"organizationId": "string",
"title": "string",
"description": "string",
"defaultStylePresetId": "string",
"createdAt": "string",
"updatedAt": "string",
"labels": "object",
"settings": {
"advertisement": {
// Includes only one of the fields `yandexDirect`
"yandexDirect": {
"enable": "boolean",
"pageId": "string",
"category": "string"
}
// end of the list of possible fields
},
"refererVerification": {
"enable": "boolean",
"allowedDomains": [
"string"
]
}
}
}
// 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. |
|
createdAt |
string (date-time) Creation timestamp. String in RFC3339 To work with values in this field, use the APIs described in the |
|
createdBy |
string ID of the user or service account who initiated the operation. |
|
modifiedAt |
string (date-time) The time when the Operation resource was last modified. String in RFC3339 To work with values in this field, use the APIs described in the |
|
done |
boolean 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. |
CreateChannelMetadata
|
Field |
Description |
|
channelId |
string ID of the channel being created. |
Status
The error result of the operation in case of failure or cancellation.
|
Field |
Description |
|
code |
integer (int32) Error code. An enum value of google.rpc.Code |
|
message |
string An error message. |
|
details[] |
object A list of messages that carry the error details. |
Channel
Root entity for content organization and separation within the video platform.
A channel serves as a container for videos and streams, providing a way to
group related content and apply common settings and access controls.
Each channel belongs to a specific organization and can have its own
configuration for advertisements, content cleanup, and embedding restrictions.
|
Field |
Description |
|
id |
string Unique identifier of the channel. |
|
organizationId |
string Identifier of the organization to which this channel belongs. |
|
title |
string Title of the channel displayed in interfaces. |
|
description |
string Detailed description of the channel's purpose and content. |
|
defaultStylePresetId |
string Identifier of the default style preset applied to videos in this channel. |
|
createdAt |
string (date-time) Timestamp when the channel was initially created. String in RFC3339 To work with values in this field, use the APIs described in the |
|
updatedAt |
string (date-time) Timestamp of the last modification to the channel or its settings. String in RFC3339 To work with values in this field, use the APIs described in the |
|
labels |
object (map<string, string>) Custom user-defined labels as |
|
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. |
|
refererVerification |
Settings for HTTP Referer verification to control content embedding. |
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 |
|
yandexDirect |
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 |
boolean Enables or disables Partner Ad for both Live and VOD content. |
|
pageId |
string (int64) Yandex.Direct page identifier. |
|
category |
string (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 |
boolean Enables or disables Referer verification for this channel. |
|
allowedDomains[] |
string List of domains allowed to embed content from this channel. Each value must match the regular expression |