Delete a video
December 6, 2024
Table of contents
https://api.useapi.net/v2/pixverse/videos/
video_id
Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
API token
is required, see Setup useapi.net for details.
Path parameter
video_id
is required. Specify the video_id you want to delete.
Responses
-
Video was successfully deleted.
-
{ "error": "<Error message>", "code": 400 }
-
{ "error": "Unauthorized", "code": 401 }
Examples
-
curl -H "Accept: application/json" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer …" \ -X DELETE "https://api.useapi.net/v2/pixverse/videos/video_id"
-
const token = "API token"; const video_id = "video_id to delete"; const apiUrl = `https://api.useapi.net/v2/pixverse/videos/${video_id}`; const response = await fetch(apiUrl, { method: 'DELETE', headers: { "Authorization": `Bearer ${token}`, }, }); const result = await response.json(); console.log("response", {response, result});
-
import requests token = "API token" video_id = "video_id to delete" apiUrl = f"https://api.useapi.net/v2/pixverse/videos/{video_id}" headers = { "Content-Type": "application/json", "Authorization" : f"Bearer {token}" } response = requests.delete(apiUrl, headers=headers) print(response, response.json())