DELETE/v1/brands/{id}
Delete a brand
PARAMETERS
- idpath · stringREQUIRED
- The brand ide.g. brand_6tq2mz8wkxhd4vbn7rce
REQUEST
curl -X DELETE "https://api.imageapis.com/v1/brands/brand_6tq2mz8wkxhd4vbn7rce" \ -H "X-API-Key: YOUR_KEY"
import requests
r = requests.delete("https://api.imageapis.com/v1/brands/brand_6tq2mz8wkxhd4vbn7rce", headers={"X-API-Key": "YOUR_KEY"})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.text)
const r = await fetch("https://api.imageapis.com/v1/brands/brand_6tq2mz8wkxhd4vbn7rce", {
method: "DELETE",
headers: { "X-API-Key": "YOUR_KEY" }
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.text());
RESPONSE
200OK
{
"id": "brand_6tq2mz8wkxhd4vbn7rce",
"object": "brand",
"deleted": true
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
"error": "string",
"message": "string",
"param": "string"
}