post
https://api-v2.pandavideo.com.br/app
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
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.
AuthorizationRequires 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Authorization | header | string | Yes | Panda 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
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
video_id | string (uuid) | Yes | ID of the video to configure | — |
video_offline_enabled | boolean | Yes | Enables/disables secure offline viewing in the Panda Video app | — |
expire_in_days_video | string | Yes | Expiration period for the offline video after download | Enum: "7", "30", "10000" (never expires) |
external_link_button_enabled | boolean | Yes | Enables/disables the external link button below the video in the app | — |
external_link_url | string | Yes | URL the external link button points to (e.g. members area, website) | Valid URL |
external_link_text | string | Yes | Text 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
| Field | Type | Description |
|---|---|---|
video_offline_enabled | boolean | Whether secure offline viewing is enabled for the video |
expire_in_days_video | string | Expiration period for the offline video. Values: "7", "30", "10000" (never expires) |
external_link_button_enabled | boolean | Whether the external link button is enabled below the video in the app |
external_link_url | string | URL the external link button points to (empty if disabled) |
external_link_text | string | Text 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"
}
]'