Skip to main content
PUT
Replaces the randomizer’s complete arm configuration. Pass every arm that should survive: an existing arm is matched by branch_id, an arm without one is added, and any existing arm you leave out is removed together with its content. A kept arm sent without a target is emptied the same way, so pass its current question_id or question_group_id back to keep what it shows. To take content out of a randomizer without deleting it, use Remove randomizer with mode: "ungroup" instead.
string
required
The randomizer ID.
string
required
The study ID.
string
required
The randomizer name (send the current name to keep it).
array
required
2 to 12 arms, the full final set. Each arm: optional branch_id (existing arm to keep; the arm’s id from List randomizers is accepted in its place), label, weight_basis_points (all arms total exactly 10000), and one of question_ids, question_id (a single question, the shape List randomizers returns), or question_group_id, or none of them for an empty arm.
integer
New position in the parent. Omit to keep the current position.

Response

The updated randomizer, same shape as List randomizers.