Type key: rating. Renders a row of stars from which respondents pick a rating from 1 to rating_max. In the editor this is the Rating block.
A question: the question rules apply, and it can sit in a layout row column.
Meta fields
Section titled “Meta fields”The meta fields of this node type are listed in the request body of Replace the draft document, under pages › nodes, in the rating tab.
Example
Section titled “Example”{ "public_id": "nRat", "sort_order": 1, "type": "rating", "meta": { "question": "<span>How was last year's event?</span>", "rating_max": 5, "validation": { "required": false } }}Defaults and rules
Section titled “Defaults and rules”rating_maxaccepts1to10and defaults to5.rating_allow_halfdefaults tofalse;trueoffers half stars.default_valueis a number; when the form renders it is clamped to the scale and rounded to a whole step, or a half step whenrating_allow_halfistrue.