Variable Collection

Type: object

AttributeTypeDescription
idstringThe unique id of the variable collection
createdintegerThe unix timestamp when the variable collection was created
namestringThe name of the variable collection
descriptionstring (Optional)The description of the variable collection
modesVariable Mode[]-
groupsVariable Group[]-
source_idstringVariable collection's identifier in the design tool
sourceResource Source (Optional)Source of the variable collection - either project or styleguide.

Example

{
  "id": "6662b9998f1d57de4566e868",
  "created": 1717746073,
  "name": "Fundamentals",
  "source_id": "4ba9866092495c104742f0959edbaa8bfa35e483",
  "modes": {
    "summary": "Variable Mode",
    "value": {
      "id": "666062f07fe9b31970400138",
      "name": "Mode 1",
      "mode_id": "69:0"
    }
  },
  "groups": {
    "summary": "Variable Group",
    "value": {
      "id": "666062f07fe9b31970400139",
      "name": "default",
      "variables": [
        {
          "id": "666062f07fe9b3197040013e",
          "name": "Black",
          "source_id": "d36cffd7c2da067c567ecc4ece9ad5fafff6ec7c",
          "values": [
            {
              "mode_id": "666062f07fe9b31970400138",
              "type": "color",
              "color": {
                "r": 0,
                "g": 0,
                "b": 0,
                "a": 1
              }
            }
          ]
        }
      ]
    }
  }
}