---
title: "Set HLS Segment Duration"
method: PUT
path: "/{library_id}"
---

# Set HLS Segment Duration

`PUT /{library_id}`

Updates the HLS segment duration of a specific library. Send only the hls_segment_duration field in the body; the library_id goes in the URL.

## Path parameters

- `library_id` string, uuid, required

## Request body

- object
  - `hls_segment_duration` integer — Duration of each HLS segment in seconds. Integer 4-15, default 6. Applies to new uploads and reencodes only.

## Response `200`

200

- object
  - `data` object
    - `hls_segment_duration` integer — The updated HLS segment duration in seconds.

## Other responses

- `400` — 400

---

[API](https://skmtc.net/pandavideo/apis/api-v2.md) · [All operations](https://skmtc.net/pandavideo/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pandavideo/api-v2/versions/4fbd3c623ca9/schema)
