Update settings
swebsy_update_settingsUpdate site settings — SEO title/description, site URL, structured data (JSON-LD), per-page SEO overrides, language/direction, theme tokens (light + dark), type scale, animation defaults, Google and uploaded fonts, dark mode toggle, site-wide custom CSS for component-level restyling (globalTheme.customTailwindConfig), favicon, robots.txt/sitemap/service worker/security headers/image optimization (performance), analytics ids, custom head/body code (advanced), the "Made with Swebsy" badge (branding) and the deploy target (deploy). Provide ONLY the fields that change. general/seo are SITE-WIDE; use page to change ONE page. Also used to match the theme to a reference IMAGE's vibe: sample its palette into brand/surface tokens and ALWAYS set BOTH light and dark variants.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seo | No | SITE-WIDE SEO. `siteUrl` is what makes robots.txt/sitemap.xml and canonical/og:url real — without it they ship the `https://yoursite.com` placeholder and the site is not indexable. | |
| page | No | SEO for the CURRENTLY SELECTED PAGE ONLY — the per-page overrides otherwise reachable just from the Pages panel. Use this whenever you mean one page: `general.title`/`general.description` are SITE-WIDE and setting them to fix one page silently rewrites the meta description of every other page. Each field overrides its site-wide counterpart for this page; omit a field to keep inheriting. Pass `null` as the whole object to clear every override. | |
| fonts | No | Fonts to add/replace. Each array you pass replaces what was there, so send the full desired list; an omitted array is kept. | |
| deploy | No | Deploy target configuration. API tokens are never settable here: the user pastes them in Settings → Deployment. Send only the keys that change. | |
| favicon | No | Set the favicon from one square image. Upload it with `upload_asset` first (PNG or SVG, at least 512x512), then pass its asset id. Every size (16px up to 512px, Apple touch, Android, MS tile) is generated from it. | |
| general | No | ||
| summary | Yes | 1 sentence explaining the settings change. | |
| advanced | No | RAW site code, the last resort. Use globalTheme.customTailwindConfig for CSS and seo.jsonLd for structured data. Each field REPLACES the previous value, so read the current settings and send the full code. It runs on every visitor's page, and the Studio flags every agent change to it. | |
| branding | No | The "Made with Swebsy" badge. Turning it off only takes effect on plans that include badge removal; free plans keep the badge on export regardless. | |
| analytics | No | Analytics ids — the snippet is generated from the id. Empty string removes one. | |
| globalTheme | No | Theme overrides. Shallow diff — only include keys that change. | |
| performance | No | Crawling files, service worker, security headers and export-time image optimization. |