Configure Video Offline

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

POST /app

Configures secure offline video settings for the Panda Video mobile app. Allows enabling/disabling offline viewing, setting expiration periods, and configuring an external link button displayed below the video in the app. Accepts an array of objects, allowing batch configuration of multiple videos in a single request.

📘

Authorization

Requires a valid API token with permission to manage video settings.

HTTP Method & Path

POST /app

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

The request body is an array of objects. Each object configures the offline and external link settings for a single video.

Body Parameters

FieldTypeRequiredDescriptionConstraints
video_idstring (uuid)YesID of the video to configure
video_offline_enabledbooleanYesEnables/disables secure offline viewing in the Panda Video app
expire_in_days_videostringYesExpiration period for the offline video after downloadEnum: "7", "30", "10000" (never expires)
external_link_button_enabledbooleanYesEnables/disables the external link button below the video in the app
external_link_urlstringYesURL the external link button points to (e.g. members area, website)Valid URL
external_link_textstringYesText displayed on the external link button

Example Request — Single video

[
  {
    "video_id": "e9f3e6a7-42fb-4d1e-83ef-49e64a799498",
    "video_offline_enabled": true,
    "expire_in_days_video": "7",
    "external_link_button_enabled": true,
    "external_link_url": "https://exemplo.com/area-membros",
    "external_link_text": "Acessar área de membros"
  }
]

Example Request — Multiple Videos

[
  {
    "video_id": "e9f3e6a7-42fb-4d1e-83ef-49e64a799498",
    "video_offline_enabled": true,
    "expire_in_days_video": "30",
    "external_link_button_enabled": false,
    "external_link_url": "",
    "external_link_text": ""
  },
  {
    "video_id": "a1b2c3d4-5678-9012-abcd-ef1234567890",
    "video_offline_enabled": true,
    "expire_in_days_video": "10000",
    "external_link_button_enabled": true,
    "external_link_url": "https://exemplo.com/curso",
    "external_link_text": "Ir para o curso"
  }
]

Example Request — Disable offline

[
  {
    "video_id": "e9f3e6a7-42fb-4d1e-83ef-49e64a799498",
    "video_offline_enabled": false,
    "expire_in_days_video": "7",
    "external_link_button_enabled": false,
    "external_link_url": "",
    "external_link_text": ""
  }
]

Response

Success Response (200)

[
    {
        "video_offline_enabled": true,
        "expire_in_days_video": "7",
        "external_link_button_enabled": false,
        "external_link_url": "",
        "external_link_text": ""
    }
]

Response Schema

FieldTypeDescription
video_offline_enabledbooleanWhether secure offline viewing is enabled for the video
expire_in_days_videostringExpiration period for the offline video. Values: "7", "30", "10000" (never expires)
external_link_button_enabledbooleanWhether the external link button is enabled below the video in the app
external_link_urlstringURL the external link button points to (empty if disabled)
external_link_textstringText displayed on the external link button (empty if disabled)

Error Responses

  • 400 Bad Request — Invalid or missing fields in the request body
  • 401 Unauthorized — Invalid or missing API token
  • 404 Not Found — Video not found
  • 500 Internal Server Error — Internal server error

Example Usage

cURL

curl -X POST \
  'https://api-v2.pandavideo.com.br/app' \
  -H 'Authorization: your_api_token_here' \
  -H 'Content-Type: application/json' \
  -d '[
    {
      "video_id": "e9f3e6a7-42fb-4d1e-83ef-49e64a799498",
      "video_offline_enabled": true,
      "expire_in_days_video": "7",
      "external_link_button_enabled": true,
      "external_link_url": "https://exemplo.com/area-membros",
      "external_link_text": "Acessar área de membros"
    }
  ]'
Responses

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