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
200 OK
Content-Type: application/json
statusstring
{ "status": "ok" }
404 Not Found
Content-Type: application/json
errorobject
codestring
messagestring
{ "error": { "code": "not-found", "message": "Card abc123 does not exist." } }
Parameters
Path Parameters
contentId
Type
string
DELETE
/content/{contentId}
Server URL:https://api.yotoplay.com
Authorization
bearerAuth
Samples
curl "https://api.yotoplay.com/content/{contentId}" --header "Authorization: Bearer [YOUR_TOKEN]"
const options = { method: 'DELETE', headers: { 'Authorization': 'Bearer [YOUR_TOKEN]' } }; fetch('https://api.yotoplay.com/content/{contentId}', 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/{contentId}",
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/{contentId}" headers = { 'Authorization: Bearer [YOUR_TOKEN]' } response = requests.request("DELETE", url, headers=headers) print(response.text)