Appearance
Delete Clothing Item
DELETE
/api/v1/clothing-item/{clothing_item_id}
Delete a clothing item by its ID. This operation will also delete all associated generations and generation results and is irreversible.
Authorizations
HTTPBearer
TypeHTTP (bearer)
Parameters
Path Parameters
clothing_item_id*
Typeinteger
RequiredResponses
Successful Response
application/json
JSON
[
]
DELETE
/api/v1/clothing-item/{clothing_item_id}
Samples
cURL
curl -X DELETE \
'https://api.uwear.ai/api/v1/clothing-item/{clothing_item_id}' \
-H "Content-Type: application/json"
JavaScript
fetch('https://api.uwear.ai/api/v1/clothing-item/{clothing_item_id}', {method:'DELETE',headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
PHP
<?php
$url = 'https://api.uwear.ai/api/v1/clothing-item/{clothing_item_id}';
$method = 'DELETE';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
Python
import requests
url = 'https://api.uwear.ai/api/v1/clothing-item/{clothing_item_id}'
headers = {
'Content-Type': 'application/json'
}
response = requests.delete(url, headers=headers)
print(response.json())