curl -X POST "https://api.getversive.com/api/v1/question-groups/d4e5f6a7-0000-4000-8000-000000000002/remove" \
-H "Authorization: Bearer $VERSIVE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"study_id": "9b2f7c1e-4a4b-4f6e-9a1d-1c2d3e4f5a6b", "mode": "ungroup"}'
{ "mode": "ungroup", "deleted_logic_rules": 0, "lifted_questions": 3, "lifted_groups": 0 }
Question groups
Remove question group
Ungroup a group (keep its questions) or delete it with its questions
POST
/
question-groups
/
{group_id}
/
remove
curl -X POST "https://api.getversive.com/api/v1/question-groups/d4e5f6a7-0000-4000-8000-000000000002/remove" \
-H "Authorization: Bearer $VERSIVE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"study_id": "9b2f7c1e-4a4b-4f6e-9a1d-1c2d3e4f5a6b", "mode": "ungroup"}'
{ "mode": "ungroup", "deleted_logic_rules": 0, "lifted_questions": 3, "lifted_groups": 0 }
ungroup lifts the group’s questions and subgroups to its parent; delete removes the group and everything in it.Response
curl -X POST "https://api.getversive.com/api/v1/question-groups/d4e5f6a7-0000-4000-8000-000000000002/remove" \
-H "Authorization: Bearer $VERSIVE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"study_id": "9b2f7c1e-4a4b-4f6e-9a1d-1c2d3e4f5a6b", "mode": "ungroup"}'
{ "mode": "ungroup", "deleted_logic_rules": 0, "lifted_questions": 3, "lifted_groups": 0 }