Appearance
Create New Clothing Item
POST
/api/v1/clothing-item
Create a new clothing item by providing images and details. Our AI vision model will help generate an accurate description of your item.
clothing_item_name
- Provide a user-friendly name for your clothing itemdescription
- A description will be automatically generated using AI vision, but any details you provide will improve accuracy, especially for features not visible in the image (e.g., 'oversized fit', 'slim cut', 'high waist')clothing_item_url
- An image of the front of your clothing itemclothing_item_back_url
- An image of the back of your clothing item (optional - if not provided, front image will be used for back shot generations)
Authorizations
HTTPBearer
TypeHTTP (bearer)
Request Body
JSON
{
"clothing_item_name": "string",
"description": "string",
"clothing_item_url": "string",
"clothing_item_back_url": "string"
}
Responses
Successful Response
application/json
JSON
{
"clothing_item_id": 0,
"clothing_item_name": "string",
"description": "string",
"clothing_item_url": "string",
"clothing_item_back_url": "string",
"created_at": "string",
"updated_at": "string"
}
POST
/api/v1/clothing-item
Samples
cURL
curl -X POST \
'https://api.uwear.ai/api/v1/clothing-item' \
-H "Content-Type: application/json"
JavaScript
fetch('https://api.uwear.ai/api/v1/clothing-item', {method:'POST',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';
$method = 'POST';
$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'
headers = {
'Content-Type': 'application/json'
}
response = requests.post(url, headers=headers)
print(response.json())