Microdata
Replace variable groups
Replace the project's variable group tree. Body must be the nested storage shape (vgid required, variables unique positive UIDs, nested variable_groups objects). DDI-style space-separated VID/VGID strings are rejected. Empty array clears all groups.
post/variable_groups/{id}
Path parameters
idinteger required
Project ID (numeric)
Request body
Example request
{
"variable_groups": [
{
"vgid": "VG1",
"variables": [
1042,
1043
],
"concepts": [
{
"concept": "Age",
"vocab": "DDI",
"uri": "https://example.org"
}
]
}
]
}Response
Groups saved
Example response
{
"status": "success"
}Changes
Changed in 1 of the 21 revisions of this API.1
- ○
endpoint added
endpoint-added
- ○