Skip to content

update_segments ​

POST /update_segments

口径:本页参数表最后核对于 v23.9(2026-10-27)。v24.0~v24.8 的改动(add_video 的 timeline_start/timeline_end 别名、apply_edl 批内失败计数、resource/search 的 limit 与 count 等价、/agent/route 类型分诊等)以 llms-full.txt 与 GET /agent/capabilities 为准。

接口说明 ​

一次更新多个片段的时间范围。和 arrange_timeline 使用同一套原子校验逻辑,适合批量调整顺序、消除重叠或重排时间线。

请求参数 ​

参数必填默认值说明
draft_id是—草稿 ID
updates是—更新数组,每项包含 segment_id,以及 start、end 或 duration
track_name否—限制只更新指定轨道

调用示例 ​

json
{
  "draft_id": "dfd_cat_demo_001",
  "updates": [
    {"segment_id": "片段A", "start": 0, "duration": 3},
    {"segment_id": "片段B", "start": 3, "duration": 3}
  ]
}

个人自建服务