Delete a video

December 6, 2024

Table of contents

  1. Request Headers
  2. Path parameter
  3. Responses
  4. Examples
  5. Try It

https://api.useapi.net/v2/pixverse/videos/video_id

Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
Path parameter
  • video_id is required. Specify the video_id you want to delete.
Responses
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())
    
Try It