Can be used to update both video attributes or its attach/detach from a folder
The "Update video properties" endpoint allows you to update the attributes of a video or attach/detach it from a folder using the PandaVideo API. By making a PUT request to the specified URL (https://api-v2.pandavideo.com.br/videos/{video_id}
), you can modify the video's properties.
To access the endpoint, you need to provide the necessary authentication in the headers using the "Authorization" field with the value "API_KEY". The video_id parameter in the URL should be replaced with the ID of the video you want to update.
In the body of the request, you can include the following parameters:
Parameter | Type | Description |
---|---|---|
title | string | The updated title of the video. |
description | string | The updated description of the video. |
folder_id | string | Can be used as an attribute to attach the video to a folder. |
Responses
200
: Success. The video properties were updated successfully.400
: Bad request. Check the provided parameters.401
: Unauthorized. Authentication failed or not provided.404
: Not found. The specified video ID was not found.500
: Internal server error. Please try again later.
By utilizing the "Update video properties" endpoint, you can programmatically modify the attributes of a video or manage its attachment to folders within Panda Video.
Recipes
The Recipes section provides a collection of code examples and sample implementations to help you understand and use the API effectively. Each recipe includes commented code that explains the purpose and functionality of each line. You can refer to these recipes as a guide to implement specific features or interact with the API endpoints.