Video Qualities

Configures default encoding and playback quality lists for the library. IMPORTANT: changes affect NEW videos only — existing videos keep their previously configured qualities.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

PUT /library/{library_id}

Enables or disables the conversion (encoding) and playback quality lists applied to new videos uploaded to your account.

📘

Authorization

Requires a valid Panda API token sent in the Authorization header (no Bearer prefix).

⚠️

Affects NEW videos only — not retroactive

Changes to encoding and playback settings via this endpoint apply only to videos uploaded after the modification. Existing videos retain their previously configured qualities and are NOT re-encoded automatically.

HTTP Method & Path

PUT /library/{library_id}

Base URL: https://api-v2.pandavideo.com.br

Authentication Requirements

Security SchemeHeaderNote
API KeyAuthorizationPanda API token (without Bearer prefix)

Parameters

NameInTypeRequiredDescription
AuthorizationheaderstringYesPanda API token (without Bearer prefix)

Path Parameters

FieldTypeRequiredDescriptionConstraints
library_idstring (uuid)YesLibrary ID — obtain it via Get user library.uuid

Request Body

Content-Type: application/json

Body Parameters

FieldTypeRequiredDescriptionConstraints
encodingarray of stringsYesResolutions to convert during the encoding process after upload.each: 240p, 360p, 480p, 720p, 1080p, 1440p, 2160p
playbackarray of stringsYesResolutions available to viewers during playback. Should be a subset of encoding to make sense.each: same enum as encoding
{
  "encoding": ["240p", "360p", "480p", "720p", "1080p"],
  "playback": ["360p", "720p", "1080p"]
}
📘

Tip

If a value is in playback but not in encoding, that resolution will not be generated on upload and will not actually be available to viewers. Keep playback ⊆ encoding.

Response

Success Response (200)

Returns the updated library settings object (same shape as Get user library).

Error Responses

  • 400 Bad Request — Invalid quality value in encoding/playback, or missing fields.
  • 401 Unauthorized — Missing or invalid API token.
  • 404 Not Foundlibrary_id not found or not owned by user.
  • 500 Internal Server Error — Server-side error.

Example Usage

cURL — enable all qualities for encoding, restrict playback

curl -X PUT \
  'https://api-v2.pandavideo.com.br/library/<library_id>' \
  -H 'Authorization: your_api_token_here' \
  -H 'Content-Type: application/json' \
  -d '{
    "encoding": ["240p", "360p", "480p", "720p", "1080p", "1440p", "2160p"],
    "playback": ["480p", "720p", "1080p"]
  }'

Recipes

Path Params
string
required
Body Params
encoding
array of strings

["240p", "360p", "480p", "720p, 1080p, 1440p, 2160p"]

encoding
playback
array of strings

["240p", "360p", "480p", "720p, 1080p, 1440p, 2160p"]

playback
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json