Yroun Guide

Content & Widgets

Post and page bodies carry a Tiptap document, JSON.stringify-ed into a string and placed in the content field. This page is the JSON shape: basic nodes you compose into prose, plus the widget block nodes that turn a page into a live dashboard.

Send raw markdown or a bare object and the API rejects it or the page renders blank. The content field is ALWAYS a string.

Document envelope

{
  "type": "doc",
  "content": [ <node>, <node>, ... ]
}

JSON.stringify-d, then passed as content.

Basic nodes

Paragraph

{ "type": "paragraph",
  "content": [{ "type": "text", "text": "Hello world." }] }

Heading (level 1-3)

{ "type": "heading",
  "attrs": { "level": 2 },
  "content": [{ "type": "text", "text": "Section title" }] }

Bullet list / ordered list

{ "type": "bulletList",
  "content": [
    { "type": "listItem", "content": [
      { "type": "paragraph", "content": [{ "type": "text", "text": "first" }] }
    ] },
    { "type": "listItem", "content": [
      { "type": "paragraph", "content": [{ "type": "text", "text": "second" }] }
    ] }
  ] }

orderedList uses the same shape, type: orderedList.

Code block

{ "type": "codeBlock",
  "attrs": { "language": "bash" },
  "content": [{ "type": "text", "text": "curl https://oapi.yroun.com/..." }] }

Blockquote

{ "type": "blockquote",
  "content": [
    { "type": "paragraph", "content": [{ "type": "text", "text": "quoted text" }] }
  ] }

Horizontal rule

{ "type": "horizontalRule" }

Table

{ "type": "table",
  "content": [
    { "type": "tableRow", "content": [
      { "type": "tableHeader", "content": [{ "type": "paragraph", "content": [{ "type": "text", "text": "Name" }] }] },
      { "type": "tableHeader", "content": [{ "type": "paragraph", "content": [{ "type": "text", "text": "Value" }] }] }
    ] },
    { "type": "tableRow", "content": [
      { "type": "tableCell", "content": [{ "type": "paragraph", "content": [{ "type": "text", "text": "alpha" }] }] },
      { "type": "tableCell", "content": [{ "type": "paragraph", "content": [{ "type": "text", "text": "42" }] }] }
    ] }
  ] }

A plain static table: table > tableRow > tableHeader (first row) or tableCell, each holding a paragraph. Use this for fixed tabular content; use apiTableBlock when the rows should come from an API with pagination and filters.

Image

{ "type": "image",
  "attrs": {
    "src": "https://cdn.yroun.com/<mediaUid>.jpg",
    "alt": "alternative text"
  } }

Use a CDN URL returned from /media/upload-complete.

Inline marks on text

{ "type": "text", "text": "bold word",
  "marks": [{ "type": "bold" }] }

Other marks: italic, code, strike, link (link takes attrs.href).

Widget blocks: the live-data nodes

Widget nodes can be embedded anywhere in the document. They run in the reader's browser, fetching from the URL you configure. Add them via the page editor's / block picker, OR drop them directly into the JSON when you build pages programmatically.

apiTableBlock: paginated, filterable table

{
  "type": "apiTableBlock",
  "attrs": {
    "title": "My Users",
    "apiUrl": "https://api.example.com/v1/users",
    "rowKey": "id",
    "pageStartOffset": 1,                    // 1 if your API is 1-indexed
    "apiMapping": {
      "reqPageNum": "page",                  // request param: page number
      "reqPageSize": "size",                 // request param: page size
      "reqSort": "sort",
      "reqSearch": "q",
      "resItems": "items",                   // path to items array in response
      "resTotal": "totalElements"            // path to total count
    },
    "columns": [
      { "key": "id",        "label": "ID",      "width": 80, "pinned": true },
      { "key": "name",      "label": "Name",    "width": 200 },
      { "key": "p95Ms",     "label": "p95 (ms)", "width": 120, "type": "number",
        "health": { "warn": 300, "danger": 800 } },
      { "key": "createdAt", "label": "Created", "width": 180, "type": "time", "precision": "datetime" }
    ]
  }
}

apiMapping is the strategic feature. Your API can use any field names. Map them to the six logical fields (reqPageNum, reqPageSize, reqSort, reqSearch, resItems, resTotal) instead of renaming server-side.

Every column sorts unless you write sortable: false on it. Use that only for a column the endpoint cannot order by (a computed cell, a joined label). Sorting is multi-column: a plain header click sorts by that column alone (asc, then desc, then cleared); shift+click adds the column as the next tie-breaker, flips it, then removes it, and the header shows 1, 2, … when more than one column is sorted. Every column goes out in order under reqSort in the format apiMapping.sortFormat names: "csv" (default) sort=-date,name · "spring" sort=date,desc&sort=name,asc (what Spring Data Pageable binds) · "colon" sort=date:desc,name:asc. In csv a "-" prefix means descending. Pick the one your endpoint parses; static rows sort client-side by the same ordered list.

Column types (widget-supported, exhaustive): string (default) | number | boolean | time | img | link (an anchor; hrefKey names the row field holding the URL, or omit it and the cell value is the URL). There is NO 'datetime' / 'url' / 'select' type. Render dates as 'time'; for enum dropdowns use isselector + options below.

Editable cells & inline CRUD

Add editable: true on a column to make it editable in place. On save the widget sends a PATCH (or PUT if updateMethod=PUT) of just the changed field(s) to updateUrl. When omitted, the URL defaults to ${apiUrl}/${rowKey-value}. Your server MUST expose the matching PATCH endpoint accepting partial updates of the editable fields.

For enum-valued columns (status, priority, role, …) add isselector: true + options: [...] to render an editable <select> dropdown rather than a free-text input. Typo-safe + the server only ever sees one of the listed values.

"columns": [
  { "key": "status", "label": "Status", "width": 110,
    "editable": true, "isselector": true,
    "options": ["PENDING", "ACTIVE", "DONE"] },
  { "key": "priority", "label": "Priority", "width": 90,
    "editable": true, "type": "number" }
]
// Plus on the apiTableBlock attrs:
"updateUrl": "https://api.example.com/v1/items/_id_",  // optional; default = `${apiUrl}/${rowKey-value}`
"updateMethod": "PATCH",                               // PATCH (default) | PUT
"createUrl": "https://api.example.com/v1/items",       // optional; enables +New button
"createMethod": "POST",                                // POST (default) | PUT | PATCH. Set PUT for register-as-upsert endpoints
"deleteUrl": "https://api.example.com/v1/items/_id_"   // optional; enables row selection + bulk delete (checkbox column, staged until Save)

Form-only fields: server accepts on POST/PUT but never echoes back

Some servers accept fields on Create/Update that they never return on Read: file uploads, lookup ids (phoneNumber, corporationContractId), action toggles like isDelete. Read-side columns can't capture them (the read API doesn't return them). Use formFields instead: two lists, rendered in the Create modal and the Update modal respectively. Both are JSON arrays you edit in the Settings → Form Fields tab (or via the JSON attrs below).

"formFields": {
  "create": [
    { "key": "phoneNumber", "label": "Phone", "type": "string", "required": true },
    { "key": "memo",        "label": "Memo",  "type": "textarea" }
  ],
  "update": [
    { "key": "thumbnailImageFile", "label": "Thumbnail",
      "type": "file", "accept": "image/*" },
    { "key": "isDelete", "label": "Delete on save", "type": "boolean" }
  ]
}

Field type: string (default) | number | boolean | textarea | select | file | media | time. file sends the bytes as a multipart part; media uploads the file to your hub library first and submits the served URL as a plain string (so the body stays JSON). Use it for any image/video URL column. A media field takes deliveryProfile: 'STREAM' (default, transcoded) or 'LOOP' (short muted background, served as uploaded, at most 12 MB and 30 s). select needs an options array; file accepts an accept pattern (e.g. 'image/*'). defaultValue prefills the input when the modal opens. required marks the input as mandatory; the Save button disables until it has a value.

writeBodyMode controls how the editable columns + form-only fields are serialized on the outbound POST/PUT/PATCH:

"writeBodyMode": "auto"        // default: multipart if any file field, else JSON
"writeBodyMode": "json"        // always JSON; file fields are sent as the string URL
"writeBodyMode": "multipart"   // always multipart/form-data

Auto handles the common case correctly. Switch to multipart explicitly if your server only accepts multipart/form-data even without a file field, or to json if your file inputs are pre-uploaded URLs (rare).

Health thresholds (any numeric column): add a health object to colour the cell as a green / amber / red badge by value: at or above warn → amber, at or above danger → red, otherwise green. Set direction: "lower-worse" to flip it (e.g. uptime %, success rate) so low values turn red. Configure it without JSON in the editor too: the column's Style Options panel has Warn / Danger number inputs + a "Lower is worse" toggle. Ideal for turning a metrics table (latency, error counts, queue depth) into an at-a-glance dashboard.

Column filters: how they reach your server

In API mode the filter bar renders on every table, for viewers as well as editors, and its column dropdown is every non-hidden entry in columns[]. There is no filterable flag and no reqFilter mapping key. A column is filterable because it is in columns[].

Each active filter goes out as ONE query parameter whose name is the column key verbatim, with the typed value as-is: GET {apiUrl}?page=0&size=10&status=APPLIED&kind=DAILY. Name your columns after the parameters your endpoint already accepts. A key cannot be remapped to a different parameter name; the one exception is a time column's two range params, named by rangeParams.

  • Equality is implied. No operator is ever sent: no LIKE, no _gte.
  • One filter per column; a second value replaces the first (a time column's From and To are one filter).
  • A time column filters by RANGE: From and To (either may be left open) go out as {key}From / {key}To. Rename them per column with rangeParams when your endpoint says from/to, startDate/endDate, since/until.
  • Picking the same day at both ends (date precision) sends the single {key}=YYYY-MM-DD param it always sent, so an endpoint built for the old equality filter keeps working; at datetime precision both params always go out, even for an equal pair.
  • An end left empty sends nothing for that side. The widget never substitutes today or now for a missing To, so your endpoint's own default (usually unbounded) applies. The filter bar says so under the inputs, because an empty end is a choice and a date input has no placeholder to say it.
  • A Now button beside the To input fills it with today (date precision) or the current minute (datetime). It is a fill shortcut: the value then travels exactly like one picked from the calendar, so your endpoint never receives a now literal. The two readings of an until-now filter therefore arrive as the two shapes you already handle: the parameter absent (no limit, and a later reload sees later rows), or an ordinary value frozen at the moment you chose Now.
  • Range values are sent exactly as picked (YYYY-MM-DD, or YYYY-MM-DDTHH:mm at datetime precision) with no time zone applied; whether To includes all of its last day is your endpoint's rule.
  • Time cells are shown in the zone your data states, with the zone written beside the clock: 2026-10-08T03:01:00Z reads 03:01 UTC in every browser, +09:00 reads UTC+9, epoch millis read in UTC, and a value with no zone shows its digits as written. To show each viewer their own local time instead, turn on the table setting Show times in the viewer's time zone (localTime: true); the clock is then labelled with the viewer's zone. Editing a cell opens the picker on the same clock the cell shows.
  • Filtering is server-side, so it spans the whole dataset, not the loaded page.
  • Filter state is runtime-only. A page cannot be shipped pre-filtered.
  • Input control follows the column type: boolean gets a yes/no select, time a From/To pair of date (or date-time) pickers, number a number input, and any column carrying options[] (type select / multiselect / isselector) gets a dropdown of those options so an enum filter cannot be mistyped. Everything else gets a plain text box.
  • Fixed inline rows · dataSource: static

    Set dataSource to "static" and put the rows in staticData. The table renders them directly and never calls an API. Sort, keyword search, pagination, and CSV export all run client-side over the fixed rows. CRUD (create/update/delete), column filters, and the refresh button are API-only and hidden (static rows have no write target); apiMapping is ignored. columns[] works identically: labels, types, health badges, pinning.

    {
      "type": "apiTableBlock",
      "attrs": {
        "title": "Monthly revenue and cost (example)",
        "dataSource": "static",
        "staticData": [
          {
            "month": "2026-01",
            "monthlyRevenue": 120400000,
            "operatingCost": 81250000
          },
          {
            "month": "2026-02",
            "monthlyRevenue": 135900000,
            "operatingCost": 86100000
          },
          {
            "month": "2026-03",
            "monthlyRevenue": 16043221000,
            "operatingCost": 90480000
          },
          {
            "month": "2026-04",
            "monthlyRevenue": 150200000,
            "operatingCost": 95030000
          }
        ],
        "columns": [
          {
            "key": "month",
            "label": "Month",
            "width": 110
          },
          {
            "key": "monthlyRevenue",
            "label": "Revenue",
            "width": 160,
            "type": "number",
            "format": "grouped"
          },
          {
            "key": "operatingCost",
            "label": "Cost",
            "width": 140,
            "type": "number",
            "format": "grouped"
          }
        ],
        "isWide": true
      }
    }

    The same rows, rendered live:

    Prefer static apiTableBlock over a plain Tiptap table when the reader benefits from sorting, searching, or paging the rows; keep a plain table for short fixed content.

    chartBlock: line / bar / pie chart (API or fixed data)

    {
      "type": "chartBlock",
      "attrs": {
        "title": "Daily Signups",
        "apiUrl": "https://api.example.com/v1/stats/daily-signups",
        "type": "line",                          // line | bar | pie
        "dataKeyX": "date",                      // field used for the x-axis
        "yAxisKeys": ["count"],                  // one entry per series (N series = N keys)
        "dataRootKey": "items"                   // ONE top-level key holding the array, not a dot path
      }
    }

    The node type is chartBlock (not apiChartBlock). The chart reads the array at response[dataRootKey]; each yAxisKeys entry is drawn as one colored series over dataKeyX.

    Fixed inline data (no API): set dataSource to "static" and put the rows in staticData. The chart draws them directly and never calls an API. Same dataKeyX / yAxisKeys mapping applies.

    {
      "type": "chartBlock",
      "attrs": {
        "title": "Monthly revenue and cost, as a line (example)",
        "type": "line",
        "dataSource": "static",
        "staticData": [
          {
            "month": "2026-01",
            "monthlyRevenue": 120400000,
            "operatingCost": 81250000
          },
          {
            "month": "2026-02",
            "monthlyRevenue": 135900000,
            "operatingCost": 86100000
          },
          {
            "month": "2026-03",
            "monthlyRevenue": 16043221000,
            "operatingCost": 90480000
          },
          {
            "month": "2026-04",
            "monthlyRevenue": 150200000,
            "operatingCost": 95030000
          }
        ],
        "dataKeyX": "month",
        "yAxisKeys": [
          "monthlyRevenue",
          "operatingCost"
        ],
        "isWide": true
      }
    }

    The same rows, drawn live as a line and as a bar:

    apiRequestBlock: Postman-style action button

    {
      "type": "apiRequestBlock",
      "attrs": {
        "title": "Trigger Sync",
        "apiUrl": "https://api.example.com/v1/sync/run",
        "method": "POST",                        // GET | POST | PUT | PATCH | DELETE
        "bodyMode": "form",                      // none | form | json
        "bodyFields": [
          { "key": "target", "label": "Target",  "type": "text",   "required": true },
          { "key": "dryRun", "label": "Dry-run", "type": "select", "options": ["yes", "no"] }
        ]
      }
    }

    Field types: text | number | boolean | select | textarea | file | image | media. select needs an options array; media uploads to your hub library first and submits the served URL. Readers fill the form inline and send it; the response renders below.

    responseMode "download": save a 2xx response as a FILE instead of rendering it. The widget's own authenticated fetch does the download (a plain link never carries an Authorization header, so token-authenticated exports MUST go through the widget). The file is named from the response's Content-Disposition header. Cross-origin APIs must also send Access-Control-Expose-Headers: Content-Disposition, or the fallback name <widget title>-YYYYMMDD.<extension from Content-Type> applies. Non-2xx responses render in the widget exactly as the default responseMode "render" does, so errors stay visible. Typical use: an admin CSV export endpoint returning text/csv.

    buttonLabel: the action button's text. Leave it empty and the button follows responseMode in the reader's language ("Send", or "Download" in download mode); set it to use your own wording, e.g. "CSV 내보내기" or "Run sync".

    bodyMode "json" is for array or nested payloads a flat row list cannot hold. Set rawBodyTemplate to a JSON string; the reader can adjust it before Send, and the text is sent VERBATIM with Content-Type: application/json. The body is edited ON THE WIDGET, Postman-style. Someone who can edit the page sees three tabs (No body, Key-value, JSON), and in Key-value mode edits each row as key, value and type (text, number, true/false, date, date and time, choice, long text, file, image, media) and picks Send as JSON or x-www-form-urlencoded; a typed row value is saved as that row value, which every visitor then sees and sends, so never type a secret there. Through a connection, x-www-form-urlencoded is POST-only; other methods send JSON. A page visitor edits values only, for that one send, and cannot add or rename keys, because the request goes out with the owner credential. Switching tabs converts rather than discards: rows become JSON with their types, JSON becomes rows merged by key, and a list, nested object, empty or __proto__ key, or an integer past 2^53 is refused with the key named. A field default is sent as its type (a number field sends 2034, not "2034"). A visitor never sees raw JSON: in JSON mode the saved body is shown as a Key | Value table built from it. Each value is an input of its type, and a list of objects (for example items with xUsername and btcbAmount) is a small table with one column per key and a blank last row that adds an item as you type into it. Send rebuilds the same JSON. Nothing the visitor did not touch changes (nulls stay null, rows keep their own keys, numbers go out exactly as typed), and an empty or unfinished number is named and holds Send. An Edit as JSON link keeps the raw text; a body the table cannot carry exactly stays raw JSON.

    {
      "type": "apiRequestBlock",
      "attrs": {
        "title": "Grant Access",
        "apiUrl": "https://api.example.com/v1/admin/whitelist/grant",
        "method": "POST",
        "bodyMode": "json",
        "rawBodyTemplate": "{\n  \"userIds\": []\n}"
      }
    }

    bodyMode "form" on POST/PUT/PATCH serializes the fields as a flat JSON object (Content-Type: application/json); a file/image field switches the whole body to multipart form-data; on GET the fields travel as a query string.

    Where each parameter goes: four places, and you choose by writing it in the right one. PATH: put {uid} or :uid in the URL and define a bodyField with that same key. QUERY: a bodyField on a GET. BODY: a bodyField on POST/PUT/PATCH/DELETE. HEADER: customHeaders, for a fixed value the reader does not fill in. Cookies belong to the browser; the widget never sets them.

    Path parameters work (since 2026-09-21). Both {uid} and :uid are accepted. The first matches OpenAPI so a path copied from our spec works unchanged, the second is what apiTableBlock deleteUrl/updateUrl already used. The value is URL-encoded into the path and is NOT also sent in the body or query, and the Send button stays disabled until every placeholder has a value, naming the one it is waiting for. This page used to say path parameters were unsupported and told you to add a query-param wrapper endpoint. You no longer need one.

    PUT, PATCH and DELETE confirm before sending, and the prompt shows the fully substituted URL, so a reader-supplied id is visible before a destructive call.

    faqBlock: accordion FAQ

    An accordion of questions and answers. dataSource 'static' (default) renders the inline staticData items with no API call; 'api' fetches from an endpoint and maps the response via apiMapping. Every field name is configurable, defaults shown below.

    {
      "type": "faqBlock",
      "attrs": {
        "title": "FAQ",
        "dataSource": "static",                  // static | api
        "staticData": [
          { "question": "How do I start?", "answer": "Install and sign in." }
        ]
      }
    }
    {
      "type": "faqBlock",
      "attrs": {
        "title": "FAQ",
        "dataSource": "api",
        "apiUrl": "https://api.example.com/v1/faqs",
        "apiMapping": { "resItems": "content", "resQuestion": "question", "resAnswer": "answer" }
      }
    }

    Entries missing a question or an answer are skipped (never crash the widget); the list is capped at 100 items. Answers render as plain text with line breaks preserved, no markdown.

    statGridBlock: KPI / monitoring tiles

    A grid of numeric tiles. dataSource 'static' (default) renders the inline tiles with no API call at all; 'api' reads them from an endpoint. In api mode tilesFrom 'response' (default) treats the response as a LIST of metrics, one tile per row, so adding a metric on your server needs no page edit; tilesFrom 'config' instead lets each tile read a dot path out of a single response object.

    {
      "type": "statGridBlock",
      "attrs": {
        "title": "Traffic",
        "dataSource": "static",
        "tiles": [
          { "label": "Visitors", "value": 23000, "format": "compact",
            "delta": 11, "direction": "lower-worse", "caption": "vs. previous period" },
          { "label": "Bounce rate", "value": 8.3, "format": "percent",
            "delta": -4, "direction": "higher-worse" }
        ]
      }
    }
    {
      "type": "statGridBlock",
      "attrs": {
        "title": "API health",
        "dataSource": "api",
        "apiUrl": "https://api.example.com/v1/metrics",
        "apiMapping": { "resItems": "items" },
        "fieldMap": { "label": "name", "value": "current", "delta": "changePct" },
        "pollIntervalSec": 60
      }
    }

    direction belongs to the metric and drives BOTH the change badge color and the threshold status: 'lower-worse' (default) means higher is better, 'higher-worse' means lower is better, 'neutral' means no judgement and no status. So a falling bounce rate renders green with a down arrow while a falling session duration renders red.

    format picks the rendering: compact (default) | count | decimal | percent | duration (seconds in, 5m 41s out) | bytes | ms | text. A value that cannot be formatted renders an em dash rather than a zero: a missing measurement and a measurement of zero are different facts. Set warn and danger on a tile to get an ok / warning / critical pill.

    pollIntervalSec defaults to 0 (off) and is floored at 30 seconds. Every reader of the page calls your endpoint on that schedule, so 100 concurrent readers at 30s is 200 requests per minute; the interval is jittered per widget so readers do not tick in phase, and it pauses while the tab is hidden. A failed refresh keeps the last values on screen, labelled with when they were read, above an error banner.

    Authenticating the widget's calls

    All the API-fed widgets fetch from the reader's browser. By default they send no auth. Point them at a public read endpoint and you are done. For a protected API, set these attrs instead of putting a key in the JSON:

    {
      "connectionRef": "my-connection",         // PREFERRED: hub Connection name (server-side proxy)
      "useAuthHeader": true,
      "authHeaderName": "Authorization",        // or "X-API-Key"
      "authMethod": "Bearer",                   // prefix; use "" for a bare key
      "authSource": "openid",                   // openid | shared | local (ignored when connectionRef is set)
      "sharedKeyName": "my-token-name"          // shared only: each VIEWER saves their own token under this name
    }
  • connectionRef (attr, preferred for a server API key): set it to a hub Connection name and the widget fetches through Yroun's server-side proxy; the secret never reaches any browser. apiPath is the sub-path appended to the connection's base URL.
  • shared (Personal token, saved): each VIEWER sends their OWN token, saved in their per-hub vault under sharedKeyName; viewers without one get an in-widget prompt to add theirs. NOT for a hub-shared secret. Nothing is shared between viewers; use a Connection for that. Never invent a sharedKeyName the viewers were not told about.
  • local: the reader enters the key in their own browser; nothing is stored in the page.
  • openid: the widget sends a short-lived (5 min) identity token for every signed-in viewer (Authorization: YrounWidget ...). Its subject is a per-hub pairwise viewer id, stable per (viewer, hub), never the Yroun account id.
  • NEVER paste a raw API key into the node attrs. Page content is publicly readable, so an embedded key is an exposed key.
  • Embedding via curl

    Put any of the above widget nodes directly into a page's content array, JSON.stringify it, then PUT:

    # 1. Create a blank page
    PAGE_UID=$(curl -s -X POST \
      https://oapi.yroun.com/hubs/HUBUID/pages \
      -H "X-API-Key: $KEY" -H "Content-Type: application/json" \
      -d "{}" | jq -r .uid)
    
    # 2. Fill it with content that includes a widget
    CONTENT=$(cat <<'EOF' | jq -Rs .
    {
      "type":"doc",
      "content":[
        {"type":"heading","attrs":{"level":2},
         "content":[{"type":"text","text":"My Users"}]},
        {"type":"apiTableBlock","attrs":{
          "title":"My Users","apiUrl":"https://api.example.com/v1/users",
          "rowKey":"id","pageStartOffset":1,
          "apiMapping":{"reqPageNum":"page","reqPageSize":"size",
                        "resItems":"items","resTotal":"totalElements"},
          "columns":[{"key":"id","label":"ID","width":80,"pinned":true},
                     {"key":"name","label":"Name","width":200}]
        }}
      ]
    }
    EOF
    )
    
    curl -X PUT \
      https://oapi.yroun.com/hubs/HUBUID/pages/$PAGE_UID \
      -H "X-API-Key: $KEY" -H "Content-Type: application/json" \
      -d "{\"title\":\"User Dashboard\",\"content\":$CONTENT,\"visibility\":\"PUBLIC\"}"

    Updating a page later? Re-PUT the same page UID. Never delete and recreate. An update is the cheaper write; recreating churns credits and leaves soft-deleted clutter behind. And before re-PUTting, GET the page first and skip the write when the content is unchanged. Every redundant PUT costs a credit.

    The compare-and-skip pattern is in Errors, Limits & Conventions → Idempotency.

    That single PUT publishes a live table in your hub. No server-side proxy, no code deploy. The widget runs in every reader's browser at view time.

    Stuck, or something here is wrong? Send us a message