Delete song

December 2, 2024

Table of contents

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

https://api.useapi.net/v1/mureka/music/song_id

The song_id value returned by one of the following endpoints:

Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
Responses
Model
{}
Examples
  • curl -H "Accept: application/json" \
         -H "Content-Type: application/json" \
         -H "Authorization: Bearer …" \
         -X DELETE https://api.useapi.net/v1/mureka/accounts/<song_id> 
    
  • const song_id = 123456789; 
    const apiUrl = `https://api.useapi.net/v1/mureka/accounts/${song_id}`; 
    const token = "API token";
    const data = { 
      method: 'DELETE',
      headers: {
        'Authorization': `Bearer ${token}`,
        'Content-Type': 'application/json' }
    };
    const response = await fetch(apiUrl, data);
    const result = await response.json();
    console.log("response", {response, result});
    
  • import requests
    song_id = 123456789
    apiUrl = f"https://api.useapi.net/v1/mureka/accounts/{song_id}" 
    token = "API token"
    headers = {
        "Content-Type": "application/json", 
        "Authorization" : f"Bearer {token}"
    }
    response = requests.delete(apiUrl, headers=headers)
    print(response, response.json())
    
Try It