Delete a notification preset
Deletes the preset from the library. Domains that serve it keep their stamped copy of the texts and files; the preset simply stops being assignable. 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"{ "detail": { "code": "preset_not_found", "message": "Preset not found" }}Edit a notification preset
Partially updates a library preset; only supplied fields change. Edits propagate immediately: every domain whose assignment enables this preset is re-stamped and its draft re-baked, so the change reaches the drafts at once — going live stays an explicit /publish. Each re-stamp also derives the bound domains' enabled flag from the preset's readiness: the assignment checkbox is the intent to show, and the banner switches on automatically once the preset is complete (all texts, an avatar and — in the 'manual' link mode — the link) — and off when it stops being complete. Requires a write-scoped key.
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.