---
title: "Measure the runtime of video media that has none"
method: POST
path: "/admin/model-content/video-durations/backfill"
tags: ["Admin Model Content"]
---

# Measure the runtime of video media that has none

`POST /admin/model-content/video-durations/backfill`

Video uploaded before confirmUpload started probing durations left model_content_media.duration NULL, so a pack sums to 0 seconds and the card hides the duration badge. Runs in batches — use dryRun first to see how many rows are pending, then repeat until `remaining` is 0.

## Request body

- BackfillModelContentVideoDurationsDto
  - `modelId` string — Restrict the backfill to a single model.
  - `contentIds` string[] — Restrict the backfill to specific content ids.
  - `limit` number
  - `force` boolean — Re-measure media that already carries a duration.
  - `dryRun` boolean

## Response `202`

---

[API](https://skmtc.dev/miaai/apis/backend-template-api.md) · [All operations](https://skmtc.dev/miaai/apis/backend-template-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/miaai/backend-template-api/revisions/2a8d88a5124f/schema)
