POST
Add a question to a review question set

Authorizations

Authorization
string
header
required

A secret API key. Publishable keys cannot reach this API. A key may carry an expiry, and an expired key is refused exactly like an unknown one, with a 401 that names no reason; check the key's expires_at in the dashboard rather than inferring it from a response. When a merchant rolls a key's secret they choose a grace window of up to 3 days, and for its duration BOTH the new secret and the one it replaced authenticate, so an integration moves over on its own deploy schedule instead of at the instant the button is pressed. Move before the window closes: after it, the old secret is refused. Nothing else about this contract moves with a roll. The key keeps its id and its scopes, so the only thing an integration updates is the credential itself.

Headers

Idempotency-Key
string
required

A unique key per logical write. Replaying a request with the same key returns the first response byte for byte instead of applying the write twice.

Path Parameters

setId
string
required

Body

application/json

APPENDS a new question. It cannot change an existing one: there is deliberately no matching PUT on a single question, because a type change on a question that already has shopper answers would leave those answers interpreted against the wrong column, silently.

prompt
string
required

Required. The text the shopper reads.

type
string
required

Required. One of text, single_select, multi_select. Decides how options and the stored answer are interpreted.

options
string[]

Required for single_select and multi_select, refused for text. The choice list a shopper picks from.

is_required
boolean

Optional, defaults to false. Whether a shopper must answer before submitting.

position
integer

Optional, defaults to 0. The order the form presents questions in.

aggregate_as_facet
boolean

Optional, defaults to false. Whether this question's answers roll into the product's published facet_summary.

Response

Created

data
object