Update Config Player

Configure the default player settings for the organization, including visible controls, colors, captions, save progress behavior, branding, tracking pixels, and settings menu options.

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

POST /player

Configure the default player settings for the organization, including visible controls, colors, captions, save progress behavior, branding, tracking pixels, and settings menu options.

📘

Authorization

This endpoint requires a valid Panda API token sent in the Authorization header (without the Bearer prefix). The configuration applies to the authenticated organization and updates the default player settings used across its videos.

HTTP Method & Path

POST /player

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

Authentication Requirements

  • Security Scheme: PandaAuth (apiKey)
  • Header: Authorization: <your_api_token> (no Bearer prefix)

Parameters

NameInTypeRequiredDescription
AuthorizationheaderstringYesPanda API token (without Bearer prefix)

Request Body

Content-Type: application/json

Body Parameters

FieldTypeRequiredDescriptionConstraints
controlsarray of stringsYesControls displayed in the playerAllowed values: play-large, rewind, play, fast-forward, current-time, volume, captions, settings, pip, fullscreen, airplay, cast
primaryColorstringYesMain accent color of the playerHex color (e.g., #4874F1)
controlsColorstringYesColor of the player controlsHex color (e.g., #FFFFFF)
captionsColorstringYesColor of the captions textHex color (e.g., #FFFFFF)
captionsBackgroundColorstringYesBackground color behind the captions textHex color (e.g., #000000)
captionsFontSizeintegerYesCaptions font size in pixelsInteger, > 0
saveProgressbooleanYesWhether to save the viewer's playback progress and resume from the last position
pandaBrandingbooleanYesWhether to display the Panda Video branding in the player
defaultLanguagestringYesDefault subtitle language to enable when the video startsBCP 47 code (e.g., pt-br); use "" for none
timeDisplayTypestringYesTime display mode in the playerEnum: CURRENT_TOTAL_TIME, REMAINING_TIME
refCodestringYesReference code used for tracking and attributionUse "" if not used
settingsControlsobjectYesToggles for items shown in the player's settings menuSee sub-fields below
settingsControls.speedbooleanYesShow the playback speed option in the settings menu
settingsControls.qualitybooleanYesShow the quality (resolution) option in the settings menu
settingsControls.dubbingbooleanYesShow the dubbing/audio-track option in the settings menu
settingsControls.captionsLanguagebooleanYesShow the captions language option in the settings menu
fbPixelarray of stringsYesFacebook Pixel IDs to fire from the playerUse [] for none
gtagIdsarray of stringsYesGoogle Tag IDs to fire from the playerUse [] for none

Example Request Body

{
  "controls": ["play-large", "rewind", "play", "fast-forward", "current-time", "volume", "captions", "settings", "pip", "fullscreen", "airplay", "cast"],
  "primaryColor": "#4874F1",
  "controlsColor": "#FFFFFF",
  "captionsColor": "#FFFFFF",
  "captionsBackgroundColor": "#000000",
  "captionsFontSize": 14,
  "saveProgress": false,
  "pandaBranding": true,
  "defaultLanguage": "",
  "timeDisplayType": "CURRENT_TOTAL_TIME",
  "refCode": "",
  "settingsControls": {
    "speed": true,
    "quality": true,
    "dubbing": true,
    "captionsLanguage": true
  },
  "fbPixel": ["124514141"],
  "gtagIds": []
}

Response

Success Response (200)

Returns the full player configuration after the update:

{
  "config": {
    "controls": ["play-large", "rewind", "play", "fast-forward", "current-time", "volume", "captions", "settings", "pip", "fullscreen", "airplay", "cast"],
    "captionsBackgroundColor": "#000000",
    "captionsFontSize": 14,
    "primaryColor": "#4874F1",
    "captionsColor": "#FFFFFF",
    "menuColor": "#4a5464",
    "controlsColor": "#FFFFFF",
    "saveProgress": false,
    "fbPixel": ["124514141"],
    "gtagIds": [],
    "pandaBranding": true,
    "refCode": "",
    "defaultLanguage": "",
    "timeDisplayType": "CURRENT_TOTAL_TIME",
    "settingsControls": {
      "speed": true,
      "quality": true,
      "dubbing": true,
      "captionsLanguage": true
    }
  }
}

Response Schema

FieldTypeDescription
configobjectFull player configuration object
config.controlsarray of stringsControls displayed in the player
config.primaryColorstringMain accent color of the player (hex)
config.controlsColorstringColor of the player controls (hex)
config.captionsColorstringColor of the captions text (hex)
config.captionsBackgroundColorstringBackground color behind the captions text (hex)
config.captionsFontSizeintegerCaptions font size in pixels
config.menuColorstringSettings menu color (hex). Returned by the server; defaults to #4a5464
config.saveProgressbooleanWhether playback progress is saved
config.pandaBrandingbooleanWhether the Panda Video branding is displayed
config.defaultLanguagestringDefault subtitle language (BCP 47); empty string when none
config.timeDisplayTypestringTime display mode: CURRENT_TOTAL_TIME or REMAINING_TIME
config.refCodestringReference code used for tracking; empty string when unused
config.settingsControlsobjectToggles for the items shown in the settings menu
config.settingsControls.speedbooleanWhether the playback speed option is shown
config.settingsControls.qualitybooleanWhether the quality option is shown
config.settingsControls.dubbingbooleanWhether the dubbing/audio-track option is shown
config.settingsControls.captionsLanguagebooleanWhether the captions language option is shown
config.fbPixelarray of stringsFacebook Pixel IDs configured on the player
config.gtagIdsarray of stringsGoogle Tag IDs configured on the player

Error Responses

  • 401 Unauthorized: Missing or invalid API token
  • 403 Forbidden: The authenticated account is not allowed to update the player configuration
  • 422 Unprocessable Entity: Invalid body fields (e.g., unknown control, malformed hex color, invalid enum value)
  • 500 Internal Server Error: Server-side error

Example Usage

cURL

curl -X POST \
  'https://api-v2.pandavideo.com.br/player' \
  -H 'Authorization: your_api_token_here' \
  -H 'Content-Type: application/json' \
  -d '{
  "controls": ["play-large", "rewind", "play", "fast-forward", "current-time", "volume", "captions", "settings", "pip", "fullscreen", "airplay", "cast"],
  "primaryColor": "#4874F1",
  "controlsColor": "#FFFFFF",
  "captionsColor": "#FFFFFF",
  "captionsBackgroundColor": "#000000",
  "captionsFontSize": 14,
  "saveProgress": false,
  "pandaBranding": true,
  "defaultLanguage": "",
  "timeDisplayType": "CURRENT_TOTAL_TIME",
  "refCode": "",
  "settingsControls": {
    "speed": true,
    "quality": true,
    "dubbing": true,
    "captionsLanguage": true
  },
  "fbPixel": ["124514141"],
  "gtagIds": []
}'
Body Params
controls
array of strings
required

Controls displayed in the player.

controls*
string
required

Main accent color (hex), e.g. #4874F1.

string
required

Color of the player controls (hex).

string
required

Color of the captions text (hex).

string
required

Background color behind the captions text (hex).

integer
required

Captions font size in pixels.

boolean
required

Whether to save the viewer's playback progress.

boolean
required

Whether to display the Panda Video branding in the player.

string
required

Default subtitle language (BCP 47, e.g. pt-br). Empty string for none.

string
enum
required

Time display mode in the player.

Allowed:
string
required

Reference code for tracking. Empty string when unused.

settingsControls
object
required

Toggles for the items shown in the player's settings menu.

fbPixel
array of strings
required

Facebook Pixel IDs to fire from the player.

fbPixel*
gtagIds
array of strings
required

Google Tag IDs to fire from the player.

gtagIds*
Responses

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