Overview / Kiosk / Discard the draft

Discard the draft

post https://api.flactrum.com/v1/kiosk/themes/{theme}/discard

Resets the draft to the published version, or to defaults if it was never published.

Required scope kiosk.write
Success status200

Parameters

NameInTypeDescription
theme * path string ULID of the record.

Examples

Recorded from the test suite — these are real requests and their real responses.

curl -X POST 'https://api.flactrum.com/v1/kiosk/themes/01m43mygtsyvhg9cat5rqetrnw/discard' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Accept: application/json'

HTTP 200 · application/json

{
    "data": {
        "id": "01m43mygtsyvhg9cat5rqetrnw",
        "branch_id": null,
        "version": 1,
        "published_at": "2026-10-04T14:26:37+00:00",
        "has_unpublished_changes": false,
        "draft": {
            "colors": {
                "background": "#F5F4F0",
                "surface": "#FFFFFF",
                "primary": "#111111",
                "on_primary": "#FFFFFF",
                "text": "#16161E",
                "text_muted": "#5E5E68",
                "price": "#16161E",
                "accent": "#B45309",
                "splash_background": "#16161E"
            },
            "splash_logo_url": null,
            "splash_image_url": null,
            "splash_image": null,
            "splash_overlay": 45,
            "texts": []
        },
        "published": {
            "colors": {
                "background": "#F5F4F0",
                "surface": "#FFFFFF",
                "primary": "#111111",
                "on_primary": "#FFFFFF",
                "text": "#16161E",
                "text_muted": "#5E5E68",
                "price": "#16161E",
                "accent": "#B45309",
                "splash_background": "#16161E"
            },
            "splash_logo_url": null,
            "splash_image_url": null,
            "splash_image": null,
            "splash_overlay": 45,
            "texts": []
        },
        "contrast": [
            {
                "check": "button",
                "foreground": "on_primary",
                "background": "primary",
                "ratio": 18.88,
                "minimum": 4.5,
                "passes": true
            },
            {
                "check": "text_on_background",
                "foreground": "text",
                "background": "background",
                "ratio": 16.34,
                "minimum": 4.5,
                "passes": true
            },
            {
                "check": "text_on_surface",
                "foreground": "text",
                "background": "surface",
                "ratio": 17.99,
                "minimum": 4.5,
                "passes": true
            },
            {
                "check": "muted_on_surface",
                "foreground": "text_muted",
                "background": "surface",
                "ratio": 6.41,
                "minimum": 4.5,
                "passes": true
            },
            {
                "check": "price_on_surface",
                "foreground": "price",
                "background": "surface",
                "ratio": 17.99,
                "minimum": 3,
                "passes": true
            },
            {
                "check": "accent_on_background",
                "foreground": "accent",
                "background": "background",
                "ratio": 4.56,
                "minimum": 3,
                "passes": true
            }
        ]
    }
}