Set profile to videos

Applies a profile to videos or a folder

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

POST /profile?type=set-videos

Applies a profile to a list of videos or to an entire folder. The profile ID goes in the body, not in the path.

Request body

FieldTypeRequiredDescription
profileuuidyesProfile ID to apply
videosstring[]conditionalVideo IDs. Mutually exclusive with folder_id
folder_iduuidconditionalApply to all videos in this folder. Mutually exclusive with videos

Send videos or folder_id, never both. The API rejects with 400 "Provide videos or folder_id, not both" if both are present, and also if neither is present.

📝 Async processing. Applying a profile to more than five videos is processed in the background. The request returns {"status":"pending"} before every video has been updated; allow a few moments and re-read the videos to confirm.

Apply to specific videos

curl -X POST "https://api-v2.pandavideo.com.br/profile?type=set-videos" \
  -H "Authorization: {api_key}" \
  -H "Content-Type: application/json" \
  -d '{
    "profile": "{profile_id}",
    "videos": ["{video_id_1}", "{video_id_2}"]
  }'

Apply to a folder

curl -X POST "https://api-v2.pandavideo.com.br/profile?type=set-videos" \
  -H "Authorization: {api_key}" \
  -H "Content-Type: application/json" \
  -d '{
    "profile": "{profile_id}",
    "folder_id": "{folder_id}"
  }'
{ "status": "ok" }
{ "status": "pending" }
Body Params
uuid
required

Profile ID to apply

videos
array of strings

Video IDs. Mutually exclusive with folder_id.

videos
uuid

Apply to all videos in this folder. Mutually exclusive with videos.

Responses

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