---
title: "Live segments put in storage"
method: POST
path: "/v1/media/live/complete"
tags: ["Media"]
---

# Live segments put in storage

`POST /v1/media/live/complete`

## Request

- Base URL: `https://api.uxduck.com`
- URL: `https://api.uxduck.com/v1/media/live/complete`
- Auth: HTTP bearer

For media nodes: checks each segment is in storage with its size and catalogues it as the account's live recording, with its capture time. The node deletes only what is acknowledged.

## Request body

- object
  - `nodeId` string, required
  - `segments` object[], required
    - `path` string, required
    - `startedAtMs` integer, required
    - `durationMs` integer, required
    - `size` integer, required
    - `sha256` string, required

## Response `200`

Which segments the account keeps, by key

- object
  - `acknowledged` string[], required
  - `missing` string[], required

## Other responses

- `400`: Not segments a node recorded
- `401`: Not a media node
- `503`: Storage is not set up here

---

[API](https://skmtc.dev/uxduck/apis/uxduck-api.md) - [All operations](https://skmtc.dev/uxduck/apis/uxduck-api/llms.txt) - [OpenAPI document](https://skmtc.dev/uxduck/apis/uxduck-api/revisions/d594d81b2806?raw)
