# Video Edit
Edit single video in project
PUT
/api/videos/{video_id}
KEY | TYPE | DESCRIPTION |
---|---|---|
title | string | If not provided it will use file name |
description | string | optional Video description |
category | string | optional Video Category, like "sport", "SF movies" |
country | string | optional Country where video can be played |
tags | string | optional Tag for video, like "Sport", "Soocker", "Manchester United" . If ID is provided it will only link to already created tag, if "name" is provided it will create new tag and link to this video |
Request body:
{
"title":"Radiohead video title",
"description":"Video spot - New Radiohead video spot",
"category": 5,
"countries":[
51
],
"tags": [
{
"id": 5
},
{
"name": "fudbal"
}
]
}
Response:
{
"message": "Video updated.",
"video": {
"id": 356,
"hash": "W5lD1QJb",
"title": "Radiohead video title",
"description": "Video spot - New Radiohead video spot",
"name": "soktok-prva-29-epizoda",
"size": 286753900,
"length": 2467.32,
"iso8601_duration": "PT41M7S",
"width": 1024,
"height": 576,
"video": "https://api.mov.mediaoutcast.com/storage/VjJd68GD/QGep98ap/2023/4/10/W5lD1QJb/index.m3u8",
"uploaded_at": "2023-04-10T13:50:01.000000Z",
"completed": true,
"completed_at": "2023-04-10T13:54:49.000000Z",
"created_at": "2023-04-10T13:50:01.000000Z",
"updated_at": "2023-04-10T14:24:38.000000Z",
"published": true,
"published_at": "2023-04-10T13:54:49.000000Z",
"resolutions": [
{
"resolution": "720p",
"resolution_id": 4,
"transcoded": 1,
"vertical_value": 720,
"horizontal_value": 1280,
"size": 228560689,
"transcode_duration": 261565
},
{
"resolution": "360p",
"resolution_id": 6,
"transcoded": 1,
"vertical_value": 360,
"horizontal_value": 640,
"size": 131214853,
"transcode_duration": 0
}
],
"tags": [
{
"id": 5,
"name": "Huligani"
}
],
"category": {
"id": 5,
"name": "Poznati"
},
"countries": [
{
"id": 51,
"name": "Armenia"
}
],
"media_resource": "pmrP5kAO/j1k01MP0/video/W5lD1QJb",
"image": "https://api.mov.mediaoutcast.com/storage/VjJd68GD/QGep98ap/2023/4/10/W5lD1QJb/posters/360p.jpg?1681134603",
"image_urls": {
"360p": "https://api.mov.mediaoutcast.com/storage/VjJd68GD/QGep98ap/2023/4/10/W5lD1QJb/posters/360p.jpg?1681134603"
},
"embed": {
"iframe": "<iframe width=\"560\" height=\"315\" src=\"https://mov.mediaoutcast.com/storage/VjJd68GD/QGep98ap/2023/4/10/W5lD1QJb/video.html\" title=\"Radiohead video title\" frameborder=\"0\" scrolling=\"no\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>",
"script": "<script src=\"https://static.mediaoutcast.com/embed/js/mov-init.min.js\" async></script>\n<mov-player project=\"https://mov.mediaoutcast.com/storage/VjJd68GD/QGep98ap/project.json\" video=\"https://mov.mediaoutcast.com/storage/VjJd68GD/QGep98ap/2023/4/10/W5lD1QJb/video.json\"></mov-player>\n<script type=\"application/ld+json\">{\"@context\":\"http://schema.org/\",\"@type\":\"VideoObject\",\"name\":\"Radiohead video title\",\"description\":\"Video spot - New Radiohead video spot\",\"thumbnailUrl\":[\"https://mov.mediaoutcast.com/storage/VjJd68GD/QGep98ap/2023/4/10/W5lD1QJb/posters/360p.jpg?1681134603\"],\"uploadDate\":\"2023-04-10T15:50:01+02:00\",\"duration\":\"PT41M7S\",\"contentUrl\":\"https://mov.mediaoutcast.com/storage/VjJd68GD/QGep98ap/2023/4/10/W5lD1QJb/index.m3u8\"}</script>\n",
"link": "https://mov.mediaoutcast.com/storage/VjJd68GD/QGep98ap/2023/4/10/W5lD1QJb/video.html"
},
"project_json": "https://mov.mediaoutcast.com/storage/VjJd68GD/QGep98ap/project.json",
"video_json": "https://mov.mediaoutcast.com/storage/VjJd68GD/QGep98ap/2023/4/10/W5lD1QJb/video.json"
}
}