Update Widget Style Draft
webinarstack.webinars.widget_style_updateUpdate a tenant-owned webinar's widget style draft with a JSON merge patch; send only the keys you change. The live widget does not change until you call webinarstack.webinars.widget_style_publish. This changes the widget's style object only. It is not page-builder authoring: it cannot add, remove or edit blocks or form fields. Writable in this version: the modal options host.modalWidth (integer 320-1200), host.modalPosition (center, drawer-right or sheet-bottom), host.modalChrome (frame or surface), host.overlayColor (a colour), host.overlayOpacity (0 to 1 in steps of 0.05), host.overlayBlur (integer 0-24), host.modalAnimation (none, fade, scale, slide-up or slide-right; skipped for visitors who prefer reduced motion), host.closeStyle (inside or floating; floating falls back to inside on drawers, sheets and phones) and host.mobileModal (inset, fullscreen or sheet; decides the layout below 640px), and the trigger options host.triggerColor, host.triggerStyle (solid, soft, outline or dark), host.triggerShape (rounded-sm, rounded or pill), host.triggerSize (md, lg or xl), host.triggerIcon (none, arrow or play) and host.triggerFont (system or inherit). An absent host.triggerColor follows the brand. host.modalWidth and host.triggerColor override the embed-card values, and a snippet data-* attribute still wins. The form options are also writable: surface (bg, maxWidth, borderWidth, borderColor, radius, shadow, padding), typography (headingFont, bodyFont, headingScale, headingWeight, align), header (logoPlacement, kickerStyle, trustStyle), fields (labelStyle, fieldStyle, fieldBorder, fieldRadius, fieldSize, fieldBg), button (buttonStyle, buttonShape, buttonWidth, buttonSize, buttonIcon, buttonColor), session picker (sessionStyle), countdown (countdownStyle) and layout (blockSpacing, blockTitle). Colour values accept hex (#rgb, #rrggbb), rgb() or rgba(), and some colours also take a keyword (bg: transparent, borderColor: auto, fieldBg: auto or translucent). An absent headingFont or bodyFont follows the webinar theme font. The dark and transparent options are writable too: surface (card, flat, glass or none), colorScheme (light or dark), textTone (auto, dark or light), layout (stacked or split) and, for the split layout, panelBg (brand, deep or a colour) and panelTone (auto, light or dark). null removes an option so it falls back to its default. Two combinations are refused after the patch is merged with the draft. A surface of none needs a textTone of dark or light: "textTone must be dark or light when surface is none." A surface of glass is for modal widgets only: "surface glass is available for modal widgets only." Because the check runs on the merged style, a patch of surface none passes when the draft already has textTone dark or light. A PATCH of colorScheme sets only the scheme and leaves the background and border colours as they are. To switch the scheme and also swap the default background and border colours (white and automatic for light, dark values for dark), use the colour scheme switch operation, POST /v1/webinars/{id}/widget/color-scheme. Layout changes go through the layout operation, POST /v1/webinars/{id}/widget/layout, which moves the blocks between the brand panel and the form side and sets the layout option in one write. A style PATCH that changes layout without the blocks moving is refused. Last write wins. Responses include updatedAt. An editor tab that is open on this widget can autosave over a draft written through the API.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"webinarId": "<webinarId>",
"style": "<style>"
},
"name": "webinarstack.webinars.widget_style_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | Yes | RFC 7396 merge patch for the widget style object. Send only the keys you change; null removes an option. | |
| webinarId | Yes |