video

video.edit

The translation was generated automatically and may contain mistakes

Метод редактирует данные видеозаписи.

To call this method, you can use:
• user access token (access right required: video — this is issued in exceptional cases by a request to support at devsupport@corp.vk.com)

Parameters

owner_id

integer

An optional parameter. The identity of the user or community that owns the video. The community ID should start with a sign - .

video_id

positive

Mandatory parameter. Video ID.

You can find the ID in the address bar of the open video:

  • After the word video .
  • After the sign ? .

Required parameter

name

string

An optional parameter. A new video title. The maximum number of characters is 128.

desc

string

An optional parameter. New description of the video. The maximum number of symbols is 5,000.

privacy_view

string

An optional parameter. Privacy settings for viewing videos. indicated in special format .

Note. The parameter corresponds to the settings privacy of Communities if the video belongs to the community.

privacy_comment

string

An optional parameter. Privacy settings for video comments. indicated in special format .

Note. The parameter corresponds to the settings privacy of Communities if the video belongs to the community.

no_comments

checkbox

An optional parameter. Information about whether to disable the ability to comment on videos from communities. Possible values:

  • 1 Disable the ability to comment.
  • 0 Do not turn off the possibility of commenting. The value is used by default.
repeat

checkbox

An optional parameter. Информация о том, зациклить ли воспроизведение видеозаписи. ?1?’озможные значения:

  • 1 - loop the video.
  • 0 - do not loop the video.
ord_info

text

Information for the advertising data operator (ADI):

  • is_ads . Transferred true , если пользователь помети?1?» видео как рекламу, но не заполни?1?» данные для ОРД.
  • advertisers . Данные, полученные из мини-приложения ОР?1?” VK:
    • er_id Token for tracking and accounting.
    • ord_pred_id The internal identifier.

Result

The method returns an object. Object fields:

Field
Type
Description
success
integer
Status of successful execution of the request. Always.. 1 .
access_key
string
Access key. Returns when community privacy is selected by_link (accessed by reference). The option is available in API version 5.195 and above.

Note. Before API version 5.195, after successful execution, only 1 .

Example of response:

JSON
{ "response": { "success": 1, "access_key": vk1.a.8mo8TRf0jm67Nla3W3fFbe9qKhMNNMqg21DQLgaPUjy0D8FLGkZV7pbMcIefkiw0rLbcnW3Btyk9HeyXENb2-yvH0-BIQJyH5xym9wOUzxxKHRhGpJyV5zb-qs3cspBXo5JXMQ3pZps0gSFHUPonLctbs_pjPsxmp0xzpMQBog_UaraxX64bGmH2ZBQEKkFDTwPtAGcm5K7JA-Bi-0fNaQ } }

Error codes

Common errors may occur during execution

Linked versions

Go to API versions page

The data format has been changed, describes the privacy .