riddle_builder_validate
Dry-runs one or many Riddle Builder creates and/or edits without creating or changing anything: per entry of $builds, the same validation the real call would apply, against a scratch/deep-copied Riddle that is discarded before this returns - never persisted, never published, no event dispatched. Any media URL in the build IS still checked for reachability with a live HEAD request (no file content is fetched or stored) exactly as a real call would, so an unreachable URL is rejected here too (INVALID_MEDIA) - this is not deferred to flush/publish time. Each entry is {type, build} for a creation or {UUID, build} for an edit; the answer is {valid, summary, items: [{index, type, UUID?, valid, build|errors, warnings?, internalError?}]} - one entry per item, in the order they were sent, so a single config means one entry and items[0]. "internalError" is only present, and only true, when checking that one item ran into an error on OUR side rather than a rejection: that item's outcome is unknown and has been reported to us, and it does not affect the other items in the same call (a real call with that config would answer a 500). Use this to check a build config, or to see why one would be rejected, before spending a real create/edit on it - and to pre-flight a set of similar Riddles in one call. Needed subscription plan: Business or Enterprise. Does NOT catch anything that only happens once a Riddle is actually flushed or published: a database constraint violation or queue-worker behaviour. See riddle://reference/riddle-builder/riddle-types for per-type build shapes and riddle://reference/response-format for the "build"/"warnings" shape this echoes back.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| omit | No | Leaves the per-block "omittedDefaults" maps out of every echoed-back build config, for a much smaller answer: omit: ["build.omittedDefaults"]. The same defaults are stated in riddle://reference/riddle-defaults/<riddle type> and riddle://reference/block-defaults/<block type>, so nothing is lost - what you must not do either way is resend those values. Omit the parameter to keep them. The other values of riddle_get's "omit" do not apply here: this envelope has no sections to drop. | |
| builds | No | The build configs to dry-run, one entry each: {type, build} for a would-be creation or {UUID, build} for a would-be edit - exactly one of "type"/"UUID" per entry, creates and edits mixable in one call, 1 to 20 entries. "type" is one of Quiz / Poll / Personality / Form / Predictor / Leaderboard / Minigame / Story / Placeholder. "build" is exactly the build configuration the matching riddle_builder_<type> tool (creation) or riddle_builder_update (edit) takes, so a config can be moved between them unchanged. An edit entry is subject to the same origin gate as riddle_builder_update: rejected if the Riddle is not apiManageable (check context.origin.apiManageable on riddle_get first). |