curl -X POST https://api.getversive.com/api/v1/randomizers/5f1c2d3e-0000-4000-8000-000000000001/remove \
-H "Authorization: Bearer $VERSIVE_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "study_id": "9b2f7c1e-4a4b-4f6e-9a1d-1c2d3e4f5a6b", "mode": "ungroup" }'
{ "mode": "ungroup", "lifted_questions": 1, "lifted_groups": 1, "deleted_logic_rules": 0 }
Randomizers
Remove randomizer
Dissolve a randomizer keeping its content, or delete it with its arms
POST
/
randomizers
/
{id}
/
remove
curl -X POST https://api.getversive.com/api/v1/randomizers/5f1c2d3e-0000-4000-8000-000000000001/remove \
-H "Authorization: Bearer $VERSIVE_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "study_id": "9b2f7c1e-4a4b-4f6e-9a1d-1c2d3e4f5a6b", "mode": "ungroup" }'
{ "mode": "ungroup", "lifted_questions": 1, "lifted_groups": 1, "deleted_logic_rules": 0 }
Removes a randomizer in one of two modes:
ungroup(default) dissolves the randomizer: each arm’s question or group moves back into the study at the randomizer’s position, in arm order, and every participant sees all of it. Nothing is deleted.deleteremoves the randomizer and everything inside its arms — questions, groups, nested randomizers, and logic rules that pointed at them.
409 Conflict. The same applies to removing or retargeting an assigned arm with Update randomizer.
Response
curl -X POST https://api.getversive.com/api/v1/randomizers/5f1c2d3e-0000-4000-8000-000000000001/remove \
-H "Authorization: Bearer $VERSIVE_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "study_id": "9b2f7c1e-4a4b-4f6e-9a1d-1c2d3e4f5a6b", "mode": "ungroup" }'
{ "mode": "ungroup", "lifted_questions": 1, "lifted_groups": 1, "deleted_logic_rules": 0 }