Delete a button
Delete a draft button and re-pack the remaining buttons' positions in the segment. 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
The domain hostname.
The segment id.
Response Body
application/json
application/json
curl -X DELETE "https://example.com/api/admin/buttons/string/string/string"{ "detail": "auth required"}{ "detail": { "code": "button_not_found", "message": "Кнопка не найдена" }}Update a button
Update a draft button's label, url, icon, text, hidden flag, conditions, or A/B variants. Only provided fields change; changing the text re-renders the SVG label. Requires a write-scoped key.
Upload a teaser-popup photo
Uploads the photo for one button's teaser popup. The image (max 5 MB) is cover-cropped to a 480×360 WebP card and stored under the domain's assets; the response returns the stored filename to reference as `popup.photo` when you PATCH the button. Re-uploading identical bytes is idempotent. Requires a write-scoped key.