---
title: "Upload Video"
method: PUT
path: "/library/{libraryId}/videos/{videoId}"
tags: ["Manage Videos"]
---

# Upload Video

`PUT /library/{libraryId}/videos/{videoId}`

## Request

- Base URL: `https://video.bunnycdn.com`
- URL: `https://video.bunnycdn.com/library/{libraryId}/videos/{videoId}`
- Auth: API key in header `AccessKey`
- TypeScript: <https://skmtc.dev/bunny/apis/stream-api/docs/library/:libraryId/videos/:videoId/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `libraryId` integer, required
- `videoId` string, required

## Query parameters

- `jitEnabled` boolean
- `enabledResolutions` string, nullable
- `enabledOutputCodecs` string, nullable
- `transcribeEnabled` boolean, nullable
- `transcribeLanguages` string, nullable
- `sourceLanguage` string, nullable
- `generateTitle` boolean, nullable
- `generateDescription` boolean, nullable
- `generateChapters` boolean, nullable
- `generateMoments` boolean, nullable

## Request body `application/octet-stream`

- string, binary

## Response `200`

The video was successfully uploaded

- StatusModel
  - `success` boolean: Determines if the request was successful
  - `message` string, nullable: Human-readable message describing the result, typically populated with error details when Success is false.
  - `statusCode` integer: The HTTP status code corresponding to the result of the request.

## Other responses

- `400`: The requested video was already uploaded
- `401`: The request authentication failed
- `403`: The request authorization failed
- `404`: The requested video was not found
- `500`: Internal Server Error

## Changes

- **2026-11-12** `83116184952f`: 5 info
  - added the media type `application/json` for the response with the status `400`
  - added the media type `application/json` for the response with the status `401`
  - added the media type `application/json` for the response with the status `403`
  - added the media type `application/json` for the response with the status `404`
  - …1 more

[Operation history](https://skmtc.dev/bunny/apis/stream-api/changes/library/:libraryId/videos/:videoId/put.md)

---

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