post https://api-v2.pandavideo.com/playlist//videos
Adds one or more videos to a playlist
POST /playlist/{playlist_id}/videos
Detailed Description
Adds one or more videos to a playlist. The request accepts an array, allowing batch additions and optional positioning via order
.
HTTP Method & Path
POST /playlist/{playlist_id}/videos
Authentication Requirements
- Security Scheme:
PandaAuth
(apiKey) - Header:
Authorization: <your_api_token>
(no Bearer prefix)
Parameters
Name | Type | Required | Description |
---|---|---|---|
Authorization | string (header) | Yes | Panda API token (without Bearer prefix) |
playlist_id | string (path, uuid) | Yes | Target playlist identifier. |
Request Body
Array of AddVideoRequest
items.
Schema: AddVideoRequest
AddVideoRequest
Name | Type | Required | Description |
---|---|---|---|
video_id | string (uuid) | Yes | Video identifier to add. |
order | integer | No | Zero-based position within the playlist. minimum=0 . |
Example Request Body
[
{ "video_id": "987f6543-e21b-12d3-a456-426614174000", "order": 0 },
{ "video_id": "123f6543-e21b-12d3-a456-426614174111", "order": 1 }
]
Notes
- If
order
is omitted, the service’s default insertion logic applies (e.g., append). (No description provided in Swagger)