PUT/v1/brands/{id}
Replace a brand; renders from then on use the new values
Send the whole brand; what you send is what is kept. Signed URLs that name it pick up the change on their next new render.
PARAMETERS
- idpath · stringREQUIRED
- The brand ide.g. brand_6tq2mz8wkxhd4vbn7rce
REQUEST BODY · APPLICATION/JSON · REQUIRED
{
"name": "Acme",
"default": true,
"logo": "https://img.imageapis.com/u/upl_4kq8wz2mhxtd7vbn3rce.png",
"colors": {
"primary": "#4f46e5",
"background": "#0f172a",
"text": "#ffffff"
},
"fonts": {
"heading": "Playfair Display",
"body": "Inter"
},
"values": {
"website": "acme.com",
"tagline": "Rockets, mostly"
}
}
REQUEST
curl -X PUT "https://api.imageapis.com/v1/brands/brand_6tq2mz8wkxhd4vbn7rce" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Acme",
"default": true,
"logo": "https://img.imageapis.com/u/upl_4kq8wz2mhxtd7vbn3rce.png",
"colors": {
"primary": "#4f46e5",
"background": "#0f172a",
"text": "#ffffff"
},
"fonts": {
"heading": "Playfair Display",
"body": "Inter"
},
"values": {
"website": "acme.com",
"tagline": "Rockets, mostly"
}
}'
import requests
r = requests.put("https://api.imageapis.com/v1/brands/brand_6tq2mz8wkxhd4vbn7rce", headers={"X-API-Key": "YOUR_KEY"}, json={
"name": "Acme",
"default": True,
"logo": "https://img.imageapis.com/u/upl_4kq8wz2mhxtd7vbn3rce.png",
"colors": {
"primary": "#4f46e5",
"background": "#0f172a",
"text": "#ffffff"
},
"fonts": {
"heading": "Playfair Display",
"body": "Inter"
},
"values": {
"website": "acme.com",
"tagline": "Rockets, mostly"
}
})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://api.imageapis.com/v1/brands/brand_6tq2mz8wkxhd4vbn7rce", {
method: "PUT",
headers: { "X-API-Key": "YOUR_KEY", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Acme",
"default": true,
"logo": "https://img.imageapis.com/u/upl_4kq8wz2mhxtd7vbn3rce.png",
"colors": {
"primary": "#4f46e5",
"background": "#0f172a",
"text": "#ffffff"
},
"fonts": {
"heading": "Playfair Display",
"body": "Inter"
},
"values": {
"website": "acme.com",
"tagline": "Rockets, mostly"
}
})
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
RESPONSE
200OK
{
"id": "brand_6tq2mz8wkxhd4vbn7rce",
"object": "brand",
"name": "Acme",
"default": true,
"logo": "https://img.imageapis.com/u/upl_4kq8wz2mhxtd7vbn3rce.png",
"colors": {
"primary": "#4f46e5",
"background": "#0f172a",
"text": "#ffffff"
},
"fonts": {
"heading": "Playfair Display",
"body": "Inter"
},
"images": {},
"values": {
"website": "acme.com",
"tagline": "Rockets, mostly"
},
"variables": {
"brand.name": "Acme",
"brand.logo": "https://img.imageapis.com/u/upl_4kq8wz2mhxtd7vbn3rce.png",
"brand.color.primary": "#4f46e5",
"brand.color.background": "#0f172a",
"brand.color.text": "#ffffff",
"brand.font.heading": "Playfair Display",
"brand.font.body": "Inter",
"brand.website": "acme.com",
"brand.tagline": "Rockets, mostly"
},
"created": "2026-10-12T18:00:00Z",
"updated": "2026-10-12T18:00:00Z"
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
"error": "string",
"message": "string",
"param": "string"
}