Usertour · Schema
UpdateVersionBodyDto
CompanyOpen SourceUser OnboardingSoftware-as-a-ServiceDeveloper Tools
Properties
| Name | Type | Description |
|---|---|---|
| steps | array | |
| startRules | objectnull | PATCHES the stored rules field-by-field: an omitted setting (frequency / priority / waitSeconds / startIfNotComplete) keeps its stored value — including one inherited from the forked version — so to t |
| hideRules | objectnull | Temporarily-hide rules. Only some content types support them (rejected per type). |
| themeId | string | Theme to apply (cannot be cleared). |
| data | object | Type-specific body for a non-flow content version: checklist / launcher / banner / tracker / announcement / resource-center, or an embed's shell (placement + target element; its steps are `steps`). Fi |
| scheduledAt | stringnull | Announcement versions only: the "announcement time" — the feed hides the announcement until this instant passes, and orders the feed by it (newest first). ISO date or datetime WITH timezone. `null` = |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/usertour-io/json-schema/usertour-io-update-version-body-dto-schema.json",
"title": "UpdateVersionBodyDto",
"x-generated": "2026-11-27",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/usertour-io-openapi.json#/components/schemas/UpdateVersionBodyDto",
"type": "object",
"properties": {
"steps": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"description": "Primary id of an existing step to update in place. It is regenerated when you fork a version, so for edits that must survive a fork prefer `cvid`.",
"type": "string"
},
"cvid": {
"description": "Stable step handle that survives forking: echo it to update an existing step in place without re-reading new ids. A step is matched by `id` first, then `cvid`; omit both to create a new step.",
"type": "string"
},
"key": {
"description": "Optional author-chosen handle for wiring \"go to step\" actions within this request (unique among the steps you send). A button action can set `step` to this key to target this step even before it exists. Write-only — not stored, not returned on read.",
"type": "string"
},
"name": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"tooltip",
"modal",
"hidden",
"bubble",
"inline"
],
"description": "Step kind. Flow steps: `tooltip` (anchors to a target element), `modal`, `bubble`, `hidden` (no UI — triggers only). Embed steps: `inline` (rendered inside the embed shell at its target element) and `hidden`. A kind the content type does not accept is rejected."
},
"sequence": {
"type": "number"
},
"themeId": {
"type": [
"string",
"null"
],
"description": "Per-step theme override. Omit to keep the current value; set to a theme id (from the themes list) to override; set to null to clear and inherit the flow theme."
},
"target": {
"description": "The element a `tooltip` step anchors to. Not used by `inline` / `hidden` steps (an embed's steps render at the embed data's `target`), so sending one there is rejected.",
"type": "object",
"properties": {
"selector": {
"type": "string",
"minLength": 1,
"description": "A stable CSS selector for the element, on the page or inside a same-origin iframe (written relative to the frame's own document). The runtime targets the FIRST match — so either make the selector unique, or pair a stable non-unique selector with `nth` to pick the intended match. A non-unique selector with no `nth` targets the first (often wrong) element and the tooltip silently won't render."
},
"text": {
"description": "Optional refinement of `selector`. Requires the targeted element's visible text to equal this (exact match, after trim) — use it to pin a specific content/state (e.g. a stable id whose displayed text you want to match: id + text). It refines the element chosen by `selector`/`nth`; on its own it does NOT search among multiple matches, so disambiguate a non-unique selector with `nth`, not `text` alone.",
"type": "string"
},
"nth": {
"description": "Optional refinement of `selector`. 0-based index to pick which match when the selector isn't unique — e.g. a stable selector matching 3 elements + `nth: 1` targets the 2nd, giving a unique result. Matches are taken in document order (as they appear in the page HTML). Range 0–4 — only the first 5 matches are addressable; a larger value is rejected.",
"type": "integer",
"minimum": 0,
"maximum": 4
}
},
"required": [
"selector"
]
},
"placement": {
"anyOf": [
{
"type": "object",
"properties": {
"side": {
"description": "Which side of the target the tooltip sits on. OMIT side+align to auto-position (the tooltip picks a spot and flips to avoid the viewport edge — best when you can't see the element). Setting side (or align) pins that direction: the tooltip renders exactly there and no longer auto-flips, so only pin when the element is not near a screen edge. When READING a step back, check `alignType` first: under `auto` the side/align you see are just the auto starting position, not a pin.",
"type": "string",
"enum": [
"top",
"right",
"bottom",
"left"
]
},
"align": {
"description": "Alignment along the side. See `side`.",
"type": "string",
"enum": [
"start",
"center",
"end"
]
},
"sideOffset": {
"description": "Pixels between the target and the tooltip, along `side`.",
"type": "number"
},
"alignOffset": {
"description": "Pixel shift along the alignment axis. Only applies when `align` is `start` or `end` — at `center` alignment the runtime ignores it silently.",
"type": "number"
},
"alignType": {
"description": "Position mode. `auto` auto-positions and flips to avoid the viewport edge (ignoring side/align); `fixed` pins to side/align without flipping. Usually omit it: providing side/align implies `fixed`, and omitting them implies `auto`. Set it only to override that (e.g. `auto` while still passing a side/align you want ignored). Read-backs always carry concrete side/align even in `auto` mode (the auto starting position, bottom/center) — `alignType` is what governs, and `auto` still flips at runtime.",
"type": "string",
"enum": [
"auto",
"fixed"
]
},
"backdrop": {
"description": "Dim the rest of the page while this tooltip is up.",
"type": "boolean"
},
"blockTarget": {
"description": "Make the backdrop swallow clicks on the highlighted element, so the user must use the tooltip. REQUIRES `backdrop: true` — on its own it does nothing (the renderer only consults it inside the backdrop branch).",
"type": "boolean"
}
},
"additionalProperties": false
},
{
"type": "object",
"properties": {
"position": {
"type": "string",
"enum": [
"leftTop",
"centerTop",
"rightTop",
"leftCenter",
"center",
"rightCenter",
"leftBottom",
"centerBottom",
"rightBottom"
]
},
"offsetX": {
"description": "Pixel shift from the grid cell. Applies in every cell EXCEPT `position: \"center\"`, where both offsets are ignored silently.",
"type": "number"
},
"offsetY": {
"description": "See `offsetX`.",
"type": "number"
},
"backdrop": {
"type": "boolean"
}
},
"required": [
"position"
],
"additionalProperties": false
}
],
"description": "Two placement shapes, by step kind: a TOOLTIP (anchored to a `target`) uses `{ side, align, sideOffset?, alignOffset?, alignType? }` positioned relative to the element; a MODAL uses `{ position, offsetX?, offsetY? }` on a 9-cell viewport grid (e.g. `\"center\"`). Both may set `backdrop`; `blockTarget` is TOOLTIP-ONLY (a modal already covers the page) and additionally requires `backdrop: true` — it makes the backdrop swallow clicks on the highlighted element. A BUBBLE step is positioned by its THEME's bubble placement, so the only key it accepts here is `{ backdrop }` (positional keys are rejected — move the bubble by changing the theme); a HIDDEN step renders no UI and rejects `placement` entirely."
},
"width": {
"description": "Step width in pixels — OVERRIDES the theme's surface width (tooltip.width / modal.width / bubble.width) for THIS step only; omit to use the theme width. Widths are border-box: the outer edge renders at exactly this value (border inside); the inner iframe measures 2x the theme border width less.",
"type": "number"
},
"skippable": {
"type": "boolean"
},
"explicitCompletionStep": {
"description": "Marks this step as an explicit completion point — reaching it completes the flow.",
"type": "boolean"
},
"content": {
"description": "The step's body blocks. On an ECHOED step (matched by cvid/id), omit to keep the stored content unchanged — an explicit [] clears it. Same omit-keeps semantics as `triggers`.",
"type": "array",
"items": {
"$ref": "#/$defs/UpdateVersionBodyDto__schema0"
}
},
"triggers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"when": {
"description": "REACTIVE slot — polled live in the browser while the step is on screen, so it accepts only client-evaluable condition types: attribute / current_url / element / text_input / text_filled / time_window. Event / segment / content_state conditions are server-evaluated and rejected here (E1017). A trigger with NO `when` never fires (an empty set is \"not matched\", not \"always\").",
"type": "array",
"items": {
"$ref": "#/$defs/UpdateVersionBodyDto__schema1"
}
},
"do": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"goto_step"
]
},
"step": {
"type": "string",
"description": "Target step: a step `key` declared elsewhere in the same write, or an existing step cvid. Resolved server-side to the cvid."
}
},
"required": [
"type",
"step"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"start_content"
]
},
"content": {
"type": "string",
"description": "contentId of the flow or checklist to launch (an id from the content list) — a raw content id, NOT a step key (unlike goto_step). Must reference a flow or checklist (a banner / launcher / resource-center / tracker is rejected at write). The target must be PUBLISHED to actually start at runtime; an unknown/dangling id is rejected at validate."
},
"step": {
"description": "Optional cvid of a step within the launched flow to start at.",
"type": "string"
}
},
"required": [
"type",
"content"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"navigate"
]
},
"url": {
"type": "string",
"description": "Absolute URL, or an app-relative path (\"/docs/x\") resolved against the origin the user is on — relative paths are the normal choice for in-app navigation."
},
"newTab": {
"description": "Open the URL in a new browser tab instead of navigating the current one.",
"type": "boolean"
}
},
"required": [
"type",
"url"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"dismiss"
]
}
},
"required": [
"type"
],
"description": "Dismiss the piece the action lives on. NOT accepted everywhere this union appears: a resource center has no dismiss (closing the panel is a UI affordance, not an action) and an announcement is marked seen, never dismissed — writes there are rejected (E1017), not ignored. Flows / checklists / launchers / banners all accept it."
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"run_javascript"
]
},
"script": {
"type": "string"
}
},
"required": [
"type",
"script"
],
"description": "Read-back of an existing script action — scripts are not authorable through this API. Echo it back UNCHANGED (same script) when rewriting the surrounding list and the stored action is preserved; omitting it deletes it (action lists are full replacements). Authoring a new or edited script is rejected."
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"unsupported"
]
},
"note": {
"type": "string"
}
},
"required": [
"type"
],
"description": "Echo-only placeholder for a stored action this schema cannot express (`note` = internal type). Echo it back to preserve the stored action; writing one fresh is rejected."
}
]
}
},
"waitSeconds": {
"description": "Delay in SECONDS between the `when` conditions matching and the `do` actions firing. The timer arms the first time `when` matches and the actions fire after the wait EVEN IF the conditions have since stopped matching (the match is latched, not re-checked). Capped at 300 seconds by the runtime (a larger value is clamped).",
"type": "number"
}
},
"required": [
"do"
]
}
},
"onClick": {
"description": "Actions to run when the user clicks the step's TARGET ELEMENT on the page (click-to-advance) — distinct from a `button` block, whose actions fire on a button rendered inside the step. `tooltip` steps only (the other kinds have no target element); sending it on a modal / bubble / hidden step is rejected.",
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"goto_step"
]
},
"step": {
"type": "string",
"description": "Target step: a step `key` declared elsewhere in the same write, or an existing step cvid. Resolved server-side to the cvid."
}
},
"required": [
"type",
"step"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"start_content"
]
},
"content": {
"type": "string",
"description": "contentId of the flow or checklist to launch (an id from the content list) — a raw content id, NOT a step key (unlike goto_step). Must reference a flow or checklist (a banner / launcher / resource-center / tracker is rejected at write). The target must be PUBLISHED to actually start at runtime; an unknown/dangling id is rejected at validate."
},
"step": {
"description": "Optional cvid of a step within the launched flow to start at.",
"type": "string"
}
},
"required": [
"type",
"content"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"navigate"
]
},
"url": {
"type": "string",
"description": "Absolute URL, or an app-relative path (\"/docs/x\") resolved against the origin the user is on — relative paths are the normal choice for in-app navigation."
},
"newTab": {
"description": "Open the URL in a new browser tab instead of navigating the current one.",
"type": "boolean"
}
},
"required": [
"type",
"url"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"dismiss"
]
}
},
"required": [
"type"
],
"description": "Dismiss the piece the action lives on. NOT accepted everywhere this union appears: a resource center has no dismiss (closing the panel is a UI affordance, not an action) and an announcement is marked seen, never dismissed — writes there are rejected (E1017), not ignored. Flows / checklists / launchers / banners all accept it."
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"run_javascript"
]
},
"script": {
"type": "string"
}
},
"required": [
"type",
"script"
],
"description": "Read-back of an existing script action — scripts are not authorable through this API. Echo it back UNCHANGED (same script) when rewriting the surrounding list and the stored action is preserved; omitting it deletes it (action lists are full replacements). Authoring a new or edited script is rejected."
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"unsupported"
]
},
"note": {
"type": "string"
}
},
"required": [
"type"
],
"description": "Echo-only placeholder for a stored action this schema cannot express (`note` = internal type). Echo it back to preserve the stored action; writing one fresh is rejected."
}
]
}
}
},
"required": [
"name",
"type"
]
}
},
"startRules": {
"type": [
"object",
"null"
],
"properties": {
"when": {
"description": "Start conditions (full replacement when present). Omit to keep the existing conditions and change only the settings.",
"type": "array",
"items": {
"$ref": "#/$defs/UpdateVersionBodyDto__schema1"
}
},
"frequency": {
"description": "How often the content may auto-start (flow/checklist only). Left unset on a write, the builder default (`once`) is seeded and STORED — read-backs show the effective mode explicitly. A version stored with NO frequency at all (reachable only through legacy/builder-external writes, never through this API) runs with NO limit: it starts again every time its rules match once the prior session ends — validate_content_version warns on that state.",
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"once",
"multiple",
"unlimited"
],
"description": "once = show a single time; multiple = at most `every.times` sessions in total (a lifetime count, not per window), each new one only after the `every` gap; unlimited = no count cap, a new session after the `every` gap."
},
"every": {
"description": "Gap after a session ends: a new one may start once `duration` `unit` has passed since the previous session of this content ended (dismissed / ended). Used by `multiple` (with `times`, the total session cap) and `unlimited`; ignored for `once`. If omitted for those modes the default is stored: 1 day, plus `times: 2` for `multiple`. `duration: 0` = no gap. Manual and programmatic starts also count toward the `multiple` limit.",
"type": "object",
"properties": {
"times": {
"type": "number"
},
"duration": {
"type": "number"
},
"unit": {
"type": "string",
"enum": [
"seconds",
"minutes",
"hours",
"days"
]
}
},
"required": [
"duration",
"unit"
]
},
"atLeast": {
"description": "Only auto-start if no OTHER content of the SAME type has been shown within this window — and since only flows accept this knob, in practice: no other FLOW. A banner / checklist / launcher showing does NOT block it. Avoids stacking several flows on a user at once.",
"type": "object",
"properties": {
"duration": {
"type": "number"
},
"unit": {
"type": "string",
"enum": [
"seconds",
"minutes",
"hours",
"days"
]
}
},
"required": [
"duration",
"unit"
]
}
},
"required": [
"mode"
]
},
"priority": {
"description": "Tie-breaker when a user matches the start conditions for more than one piece of content at the same time — the higher priority starts first. Content with no priority set ranks as `medium`.",
"type": "string",
"enum": [
"highest",
"high",
"medium",
"low",
"lowest"
]
},
"waitSeconds": {
"description": "Delay in SECONDS between the start conditions matching and the content becoming ELIGIBLE to start. The countdown itself survives the conditions un-matching mid-wait, but unlike a trigger wait (which fires its actions regardless), an elapsed start-rule wait guarantees nothing: the conditions are RE-CHECKED at show time, and the content starts at the next moment they match again. One exception: when a session of the same content type starts or ends mid-wait, in-flight timers are cancelled and re-armed — a still-matching version then restarts its wait from zero. Capped at 300 seconds by the runtime (a larger value is clamped).",
"type": "number"
},
"startIfNotComplete": {
"description": "When true, this content won't auto-start for users who have already completed it.",
"type": "boolean"
}
},
"description": "PATCHES the stored rules field-by-field: an omitted setting (frequency / priority / waitSeconds / startIfNotComplete) keeps its stored value — including one inherited from the forked version — so to turn a setting off, send it explicitly (e.g. `startIfNotComplete: false`). `when`, when present, fully replaces the condition list. `null` clears the rules entirely (content stops auto-starting). Which settings and which `when` condition types the CONTENT TYPE supports varies (e.g. no priority on a launcher, attribute/segment-only targeting on an announcement) — unsupported ones are rejected per type."
},
"hideRules": {
"type": [
"object",
"null"
],
"properties": {
"when": {
"type": "array",
"items": {
"$ref": "#/$defs/UpdateVersionBodyDto__schema1"
}
}
},
"required": [
"when"
],
"description": "Temporarily-hide rules. Only some content types support them (rejected per type)."
},
"themeId": {
"description": "Theme to apply (cannot be cleared).",
"type": "string"
},
"data": {
"description": "Type-specific body for a non-flow content version: checklist / launcher / banner / tracker / announcement / resource-center, or an embed's shell (placement + target element; its steps are `steps`). Field-level merged onto the existing data.",
"anyOf": [
{
"type": "object",
"properties": {
"buttonText": {
"description": "Label on the collapsed checklist launcher pill (e.g. \"Getting started\"). Plain string — NO `{{ }}` interpolation (braces would render literally).",
"type": "string"
},
"initialDisplay": {
"description": "How the checklist first appears: `expanded` shows the whole checklist (tasks and all); `button` shows just the launcher button.",
"type": "string",
"enum": [
"expanded",
"button"
]
},
"completionOrder": {
"description": "Whether tasks can be completed in `any` order, or must be completed `ordered` (top to bottom among the tasks the user can currently SEE — a task hidden by `onlyShowWhen` does not block the ones after it). This is the ONLY built-in cross-task sequencing — there is no per-task \"after task X\" condition; for finer dependencies gate a task's `onlyShowWhen` on the shared event/state that completes its prerequisite.",
"type": "string",
"enum": [
"any",
"ordered"
]
},
"preventDismiss": {
"description": "When true, users can't dismiss the checklist.",
"type": "boolean"
},
"autoDismiss": {
"description": "When true, the checklist closes on its own once every task is done.",
"type": "boolean"
},
"content": {
"description": "Rich content shown at the top of the expanded panel, above the task list — typically a short welcome line framing what the tasks achieve.",
"type": "array",
"items": {
"$ref": "#/$defs/UpdateVersionBodyDto__schema0"
}
},
"items": {
"description": "The checklist tasks. To be usable (enforced at publish) each item needs a `name` AND at least one of `completeWhen` (how it auto-completes) or `clickActions` (what its row does) — an item with neither is a dead row. `task_clicked` in `completeWhen` is the only completion that needs no app instrumentation.",
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"description": "Server-owned task identity — ECHO it back when rewriting `items`. An item written without its existing id gets a NEW one: in-flight users' completion state for it resets and its per-task analytics rows break. Omit only for a genuinely new task.",
"type": "string"
},
"name": {
"type": "string",
"description": "The visible task row label. Plain string — NO `{{ }}` interpolation (braces would render literally)."
},
"description": {
"description": "Optional supporting text rendered below the task name. A short benefit statement or time estimate (\"Send an invite so your team can collaborate\", \"~30 sec\") measurably lifts task click-through — prefer setting it over leaving the row name-only. Plain string — NO `{{ }}` interpolation (braces would render literally).",
"type": "string"
},
"completeWhen": {
# --- truncated at 32 KB (172 KB total) ---
# Full source: https://artifacts.apis.io/usertour-io/json-schema/usertour-io-update-version-body-dto-schema.json
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/usertour-io-update-version-body-dto"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.