DELETE/v1/templates/{id}
Delete a template
PARAMETERS
- idpath · stringREQUIRED
- The template ide.g. tpl_4nq8vzk2hdyw7bxme3rc
REQUEST
curl -X DELETE "https://api.imageapis.com/v1/templates/tpl_4nq8vzk2hdyw7bxme3rc" \ -H "X-API-Key: YOUR_KEY"
import requests
r = requests.delete("https://api.imageapis.com/v1/templates/tpl_4nq8vzk2hdyw7bxme3rc", 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/templates/tpl_4nq8vzk2hdyw7bxme3rc", {
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": "tpl_4nq8vzk2hdyw7bxme3rc",
"object": "template",
"deleted": true
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
"error": "string",
"message": "string",
"param": "string"
}