API de vídeosEndpoints

Atualizar um vídeo

O corpo da requisição é agrupado por recurso do player: controls, playback, turbo, smart_autoplay, pixels e outros. É um merge-patch: envie só os grupos que você quer alterar e, dentro de um grupo, só as chaves em que você mexe; todo o resto mantém o valor salvo.

PATCH
/v1/videos/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

Cole seu token da API VTurb (vt_...). Enviado como Authorization: Bearer <token>.

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X PATCH "https://example.com/v1/videos/652f2b1e8f1b2c3d4e5f6a7b" \  -H "Content-Type: application/json" \  -d '{    "controls": {      "backward": true,      "big_play": false,      "forward": true,      "fullscreen": true,      "play_pause": true,      "seekbar": true,      "time": true,      "volume": true,      "fake_bar": false,      "speed": true    },    "alternative_video": {      "enabled": true,      "id": "507f191e810c19729de860ea"    },    "immersive_mode": {      "enabled": true,      "desktop": true,      "disable_scrolling": false,      "expand_on_play": true,      "minimize_on_pause": false,      "mobile": true    },    "traffic_filter": {      "enabled": true,      "fallback_video_id": "507f191e810c19729de860ea",      "token": "gate_7f3c1a",      "languages": [        "pt",        "en"      ],      "countries": [        "BR",        "US"      ],      "devices": [        "desktop",        "mobile"      ],      "query_params": [        "utm_source"      ],      "block_proxy": true    },    "playback": {      "enabled": true,      "disable_pause": false,      "smart_pause": true,      "scroll_to_action_in": 30,      "action_after_finish": {        "type": "loop",        "start": 5      }    },    "progress_bar": {      "enabled": true,      "height": 12,      "use_base_color": false,      "color": "#0000FF"    },    "subtitle": {      "enabled": true,      "control": true,      "style": {        "font_size": "16px",        "color": "#FFFFFF",        "background_color": "#000000",        "text_align": "center",        "show_by_default": true      },      "track": {        "file_id": "0190a0b0-2222-7222-8222-222222222222"      }    },    "resume": {      "enabled": true,      "disable_pause": false,      "styles": {        "background_color": "#1890FF",        "foreground_color": "#FFFFFF"      },      "texts": {        "play": "Keep watching",        "replay": "Replay",        "title": "You already started"      }    },    "call_actions": {      "enabled": true,      "items": [        {          "base": {            "type": "outside_video",            "active": true          },          "window": {            "start": 5,            "end": 30          },          "action": {            "content": "Buy now",            "url": "https://example.com/checkout",            "open_in_new_tab": true          },          "design": {            "typography": {              "family": "Inter",              "letter_spacing": 0,              "line_height": 1.2,              "size": 16,              "weight": 600            },            "styles": {              "background_color": "#1890FF",              "background_hover_color": "#096DD9",              "text_color": "#FFFFFF",              "text_hover_color": "#F0F0F0",              "border_radius": 8,              "shadow_enabled": true,              "shadow": {                "blur": 12,                "color": "#00000040",                "horizontal": 0,                "vertical": 4,                "spread": 2              },              "padding": {                "binding": true,                "values": [                  12,                  24,                  12,                  24                ]              }            }          }        }      ]    },    "smart_autoplay": {      "enabled": true,      "variants": [        {          "template_name": "image",          "template_position": "top-right",          "file_id": "0190a0b0-0000-7000-8000-0000000000f1",          "scale": 0.5        }      ]    },    "headline": {      "variants": [        {          "id": "652f2b1e8f1b2c3d4e5f0201",          "base": {            "name": "Renamed"          }        },        {          "base": {            "number": 3          },          "content": {            "kind": "html",            "html": "<h1>New</h1>"          }        },        {          "id": "652f2b1e8f1b2c3d4e5f0202",          "_destroy": true        }      ]    },    "name": "Renamed",    "description": "New copy",    "folder_id": "652f2b1e8f1b2c3d4e5f00aa",    "pixels": {      "enabled": true,      "items": [        {          "base": {            "name": "Fresh",            "type": "custom"          },          "tag": {            "html": "<div>tag</div>"          },          "dispatch": {            "active": true,            "threshold": 50,            "mode": "percent"          }        }      ]    },    "turbo": {      "enabled": true,      "speed": 1.5    },    "mini_hooks": {      "elements": [        {          "id": "652f2b1e8f1b2c3d4e5f0016",          "content": {            "src_file_id": "0190a0b0-3333-7333-8333-333333333333"          }        }      ]    },    "thumbsniper": {      "images": {        "start_file_id": "0190a0b0-1111-7111-8111-111111111111",        "pause_file_id": "0190a0b0-1111-7111-8111-111111111111",        "finish_file_id": "0190a0b0-1111-7111-8111-111111111111"      },      "cards": [        {          "base": {            "image_file_id": "0190a0b0-1111-7111-8111-111111111111"          }        }      ]    }  }'
{  "description": null,  "folder_id": null,  "id": "652f2b1e8f1b2c3d4e5f6a7b",  "status": "processing",  "name": "Landing hero",  "controls": {    "backward": null,    "big_play": null,    "forward": null,    "fullscreen": null,    "play_pause": null,    "seekbar": null,    "time": null,    "volume": null,    "fake_bar": null,    "speed": null  },  "call_actions": {    "enabled": false,    "items": []  },  "alternative_video": {    "enabled": null,    "id": null  },  "traffic_filter": {    "enabled": null,    "fallback_video_id": null,    "token": null,    "languages": null,    "countries": null,    "devices": null,    "query_params": null,    "block_proxy": null  },  "styles": {    "background_color": null,    "foreground_color": null,    "border_radius": null,    "linear_gradient": {      "enabled": null,      "angle": null,      "primary_color": null,      "primary_stop": null,      "secondary_color": null,      "secondary_stop": null    }  },  "general": {    "currency": null,    "pitch_time": null,    "preload_type": null,    "start_quality": null  },  "immersive_mode": {    "enabled": null,    "desktop": null,    "disable_scrolling": null,    "expand_on_play": null,    "minimize_on_pause": null,    "mobile": null  },  "mini_hooks": {    "enabled": null,    "elements": []  },  "pixels": {    "enabled": null,    "items": []  },  "playback": {    "enabled": null,    "disable_pause": null,    "scroll_to_action_in": null,    "smart_pause": null,    "action_after_finish": {      "type": null,      "start": null    }  },  "subtitle": {    "enabled": null,    "control": null,    "track": {      "name": null,      "url": "https://static.vturb.com/assets/org_123/2026/08/12/0190a0b0-2222-7222-8222-222222222222/original.vtt"    },    "style": {      "font_size": null,      "color": null,      "background_color": null,      "text_align": null,      "bottom": null,      "max_width": null,      "show_by_default": null    }  },  "thumbsniper": {    "enabled": null,    "background_color": null,    "images": {      "start": null,      "pause": null,      "finish": null    },    "cards": []  },  "turbo": {    "enabled": null,    "mode": "single",    "speed": null  },  "headline": {    "enabled": null,    "mode": "single",    "active_number": null,    "variants": []  },  "progress_bar": {    "enabled": null,    "height": null,    "use_base_color": null,    "current_color": null,    "color": null  },  "resume": {    "enabled": null,    "disable_pause": null,    "styles": {      "background_color": null,      "foreground_color": null    },    "texts": {      "play": null,      "replay": null,      "title": null    }  },  "smart_autoplay": {    "enabled": null,    "active_number": null,    "mode": "single",    "variants": []  }}