Delete an existing 3D Mockup.
dieline_id string |
Unique identifier for the "dieline" object required Example: "di_fwe4iu3vngty" |
id string | Unique identifier of the "3D Mockup" to be deleted. For example cq8fwgnjvt9s |
HTTP/1.1 204 No Content
curl -i -X DELETE \
https://api.diecuttemplates.com/dielines/di_fwe4iu3vngty/3d-mockups/cq8fwgnjvt9s \
-H 'Authorization: Bearer <YOUR_DIELINES_API_KEY_HERE>' \
-H 'Dielines-Api-Version: 1.0'
require 'net/http'
require 'uri'
require 'json'
# Define the endpoint and headers
uri = URI('https://api.diecuttemplates.com/dielines/di_fwe4iu3vngty/3d-mockups/cq8fwgnjvt9s')
headers = {
'Authorization' => 'Bearer <YOUR_DIELINES_API_KEY_HERE>',
'Dielines-Api-Version' => '1.0'
}
# Make the HTTP request
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(uri, headers)
response = http.request(request)
puts "Status Code: #{response.code}"
// Define the endpoint and headers
$url = "https://api.diecuttemplates.com/dielines/di_fwe4iu3vngty/3d-mockups/cq8fwgnjvt9s";
$headers = [
"Authorization: Bearer <YOUR_DIELINES_API_KEY_HERE>",
"Dielines-Api-Version: 1.0"
];
// Initialize cURL
$ch = curl_init();
// Set cURL options
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE"); // Set HTTP method to DELETE
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// Execute the request
$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
// Handle errors
if (curl_errno($ch)) {
echo "cURL Error: " . curl_error($ch);
} else {
// Output the response
echo "HTTP Status Code: " . $httpCode . PHP_EOL;
}
// Close the cURL session
curl_close($ch);
HTTP/1.1 204 No Content