# 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 integer optional Video Category Id Reference API link (opens new window)
countries array optional Array of Country ids and codes where video can be played Reference API link (opens new window)
tags array optional Tags 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": "Big Buck Bunny",
    "description": "Official Blender Foundation Short Film",
    "category": 5,
    "countries": [
      6290252,
      "RS"
    ],
    "tags": [
        {
            "id": 10
        },
        {
            "name": "Cartoon"
        }
    ]
}

Response:

{
    "message": "Video updated.",
    "video": {
        "id": 57,
        "hash": "9wb3v7My",
        "title": "Big Buck Bunny",
        "description": "Official Blender Foundation Short Film",
        "name": "bbb-sunflower-1080p-30fps-normal",
        "size": 276134947,
        "length": 634.533333,
        "iso8601_duration": "PT10M34S",
        "width": 1920,
        "height": 1080,
        "video": "https://api.mov.mediaoutcast.test/storage/pmrP5kAO/pmrP5kAO/2024/1/9/9wb3v7My/index.m3u8",
        "uploading": false,
        "uploaded_at": "2024-01-09T13:03:13.000000Z",
        "transcoding_progress": 100,
        "transcoding_at": "2024-01-09T13:03:16.000000Z",
        "transcoding_eta": 0,
        "completed": true,
        "completed_at": "2024-01-09T13:09:23.000000Z",
        "created_at": "2024-01-09T13:03:13.000000Z",
        "updated_at": "2024-01-09T13:20:59.000000Z",
        "published": true,
        "published_at": "2024-01-09T13:09:23.000000Z",
        "published_url": "https://static.mediaoutcast.test/storage/pmrP5kAO/pmrP5kAO/2024/1/9/9wb3v7My/index.m3u8",
        "category": {
            "id": 5,
            "name": "Short film"
        },
        "countries": [
            {
                "id": 6290252,
                "code": "RS",
                "name": "Serbia"
            }
        ],
        "player": null,
        "resolutions": [
            {
                "id": 3,
                "name": "1080p",
                "width": 1920,
                "height": 1080
            },
            {
                "id": 4,
                "name": "720p",
                "width": 1280,
                "height": 720
            },
            {
                "id": 5,
                "name": "480p",
                "width": 854,
                "height": 480
            }
        ],
        "tags": [
            {
                "id": 10,
                "name": "Comedy"
            },
            {
                "id": 11,
                "name": "Cartoon"
            }
        ],
        "image_urls": {
            "360p": "https://api.mov.mediaoutcast.test/storage/pmrP5kAO/pmrP5kAO/2024/1/9/9wb3v7My/posters/360p.jpg?1704805394",
            "720p": "https://api.mov.mediaoutcast.test/storage/pmrP5kAO/pmrP5kAO/2024/1/9/9wb3v7My/posters/720p.jpg?1704805394",
            "1080p": "https://api.mov.mediaoutcast.test/storage/pmrP5kAO/pmrP5kAO/2024/1/9/9wb3v7My/posters/1080p.jpg?1704805394"
        },
        "image_update_at": null,
        "embed": {
            "iframe": "<iframe width=\"560\" height=\"315\" src=\"https://static.mediaoutcast.test/videos/9wb3v7My/video.html\" title=\"Big Buck Bunny\" frameborder=\"0\" scrolling=\"no\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>",
            "script": "<script src=\"https://static.mediaoutcast.test/player/master/js/mov-init.min.js\" async></script>\n<mov-player project-id=\"pmrP5kAO\" video-id=\"9wb3v7My\"></mov-player>\n<script type=\"application/ld+json\">{\"@context\":\"http://schema.org/\",\"@type\":\"VideoObject\",\"name\":\"Big Buck Bunny\",\"description\":\"Official Blender Foundation Short Film\",\"thumbnailUrl\":[\"https://static.mediaoutcast.test/storage/pmrP5kAO/pmrP5kAO/2024/1/9/9wb3v7My/posters/360p.jpg?1704805394\"],\"uploadDate\":\"2024-01-09T14:03:13+01:00\",\"duration\":\"PT10M34S\",\"contentUrl\":\"https://static.mediaoutcast.test/storage/pmrP5kAO/pmrP5kAO/2024/1/9/9wb3v7My/index.m3u8\"}</script>\n",
            "link": "https://static.mediaoutcast.test/videos/9wb3v7My/video.html"
        },
        "project_json": "https://static.mediaoutcast.test/projects/pmrP5kAO.json",
        "video_json": "https://static.mediaoutcast.test/videos/9wb3v7My/video.json",
        "storage_size": 698520210
    }
}