put
https://api-v2.pandavideo.com/block_download
Enables or disables the library-wide anti-download flag.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
PUT /block_download
Enables or disables the library-wide anti-download flag.
AuthorizationRequires a valid API token in the
Authorizationheader (withoutBearerprefix). The library is resolved automatically by the token'suser_id.
Always send a booleanNon-boolean values (number, string, null, missing field) are accepted by the route but the change is silently dropped — the response echoes the value you sent but
LibrarySettings.block_downloadis not updated. This is a real production behavior; always sendtrueorfalse.
HTTP Method & Path
PUT /block_download
Base URL: https://api-v2.pandavideo.com.br
Authentication Requirements
| Header | Value |
|---|---|
Authorization | Your Panda API token (no Bearer prefix) |
Request Body
Content-Type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
status | boolean | yes | true to enable anti-download, false to disable |
{ "status": true }Side effects
- Persists
LibrarySettings.block_download = status(only whenstatusis a boolean). - Invalidates the
getLibraryById_{library_id}memcache key. - Queues an audit log entry under the
securitycategory —enablewhenstatus: true,disablewhenstatus: false.
Response
Success Response (200)
{ "status": true }The response echoes whatever value was sent — including non-boolean values that were not actually persisted.
Error Responses
| Status | When |
|---|---|
404 | Library not found for the authenticated user |
500 | Internal error |
Example Usage
cURL — enable
curl -X PUT \
-H "Authorization: $PANDA_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"status": true}' \
https://api-v2.pandavideo.com.br/block_downloadcURL — disable
curl -X PUT \
-H "Authorization: $PANDA_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"status": false}' \
https://api-v2.pandavideo.com.br/block_downloadRelated
- Read the flag:
GET /block_download - Per-video offline / anti-download configuration:
configure-video-offline
