Microdata

List variable groups

Return the editor-native variable group tree for a microdata/survey project. Membership is editor_variables.uid integers. Hierarchy is nested variable_groups objects, not DDI IDREF strings. This is the shape the editor UI GET/POSTs. Project JSON export (/editor/json/{id}) uses interchange rows instead (space-separated VIDs/VGIDs).

get/variable_groups/{id}

Path parameters

idinteger required

Project ID (numeric)

Response

Nested variable group tree

Example response

{
  "variable_groups": [
    {
      "vgid": "VG1",
      "variables": [
        1042,
        1043
      ],
      "concepts": [
        {
          "concept": "Age",
          "vocab": "DDI",
          "uri": "https://example.org"
        }
      ]
    }
  ]
}

Changes

Changed in 1 of the 21 revisions of this API.1