Remove a preset avatar
Removes the preset's master avatar. Domains bound to the preset lose it too and their banners are disabled (a banner cannot render without an avatar). Enabled follows the preset's readiness, so re-uploading an avatar switches the bound domains back on automatically. Requires a write-scoped key.
Authorization
bearerAuth Your al_live_<prefix>_<secret> API key. Mint and manage keys in the dashboard.
In: header
Path Parameters
Notification preset id.
Response Body
application/json
curl -X DELETE "https://example.com/api/admin/library/notifications/0/avatar"{ "detail": { "code": "preset_not_found", "message": "Preset not found" }}Upload a preset avatar
Uploads the preset's master avatar (JPEG/PNG/WebP/AVIF, max 5 MB; center- cropped to a 192px square WebP with a content-hash filename). Master files live in the preset's folder and are served at /notification/_preset_<id>/<filename>; they are copied into each domain folder on apply / assignment save. Domains bound to the preset are re- stamped with the new avatar immediately; if the avatar was the last missing piece, the re-stamp switches their banners on automatically (enabled follows the preset's readiness). Requires a write-scoped key.
Apply a preset to domains
Stamps the preset into each target domain's draft banner (texts, files, preset_id and a single-preset assignment), materializes the preset's master files into each domain folder, and enables the banner only when the preset is complete (all texts, an avatar and — in the 'manual' link mode — the link). Drafts are re-baked; going live stays an explicit /publish. Requires a write-scoped key.