Attributes Export Spec

Introduction

Exported attributes are available in the instance_list, for every instance under the key attribute_groups.

JSON Example

attribute_groups is a dictionary where the key is the id of the group and the value is the value for the template.

"instance_list": [
      {
        "type": "box",
        ... 
        "attribute_groups": {
          "8": {
            "name": "the template option that was selected",
            "archived": false,
            "display_order": null,
            "id": 15,
            "kind": "select",
            "value_type": null
          }
        }
      },
      { 
           ... another instance
       } 
...
]

Note: If there are no attributes for an instance the value of attribute_groups will be null.

Each export has a single key attribute_groups_reference which has information on the groups, for example:

"attribute_groups_reference": [
    {
      "id": 8,
      "is_root": true,
      "name": "test_group_name",
      "prompt": "a prompt written is a prompt earned",
    }
  ]

Note: If there are no attribute_groups_reference the value will be an empty array.