delete content
This deletes a piece of content with the specified contentId.
A user can only delete a piece of content if it is a Make Your Own (MYO) card that the user has created.
A 404 response will be returned if a user attempts to delete a piece of content that they didn't create.
Request
URL Parameters:
contentId
: (string) The ID of the content to be deleted.
Responses
404 Not Found application/json
errorobject
codestring
messagestring
{ "error": { "code": "not-found", "message": "Card abc123 does not exist." }}
Path Parameters
cardId string Required
DELETE
/content/{cardId}
Server URL: https://api.yotoplay.com
Authorization (bearerAuth)
curl "https://api.yotoplay.com/content/{cardId}"--header "Authorization: Bearer [YOUR_TOKEN]"
const options = { method: 'DELETE', headers: { 'Authorization': 'Bearer [YOUR_TOKEN]' }};
fetch('https://api.yotoplay.com/content/{cardId}', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
<?php
$curl = curl_init();
curl_setopt_array($curl, [ CURLOPT_URL => "https://api.yotoplay.com/content/{cardId}", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "DELETE", CURLOPT_HTTPHEADER => [ "Authorization: Bearer [YOUR_TOKEN]" ],]);
$response = curl_exec($curl);$err = curl_error($curl);
curl_close($curl);
if ($err) { echo "cURL Error #:" . $err;} else { echo $response;}
import requests
url = "https://api.yotoplay.com/content/{cardId}"
headers = { "Authorization": "Bearer [YOUR_TOKEN]"}
response = requests.request("DELETE", url, headers=headers)
print(response.text)