Dimension Service API  2.0.0
api index

Dimension Object

since: 0.6

Fields

id
0.6required when...
name is not set
string
The system-defined internal object ID (in UUID canonical string format).

If both the id and name fields are present, then the id field should take precedent to avoid ambiguity in cases where the ID and name could be mismatched.

name
0.6required when...
id is not set
string
The name used to identify the dimension to external systems, which must be unique within the set of dimensions belonging to the same owner.

If both the id and name fields are present, then the id field should take precedent to avoid ambiguity in cases where the ID and name could be mismatched.

0.6 min length: 1
0.6 max length: 255
label
0.6optional
Human-readable, descriptive text shown to users instead of the machine-readable or cryptic id/name fields. The value may vary based on the requesting user's language and locale preferences (subject to available content).
locales
0.6optional
array of string
List of locales (language + optional region + optional variants) that are configured for this dimension. Generally, localized content (e.g. label) should be available for each distinct value in this list.

Locale strings must conform to IETF BCP-47: Tags for Identifying Languages.

defaultLocale
0.6optional
string
The default locale that will be used by this Dimension when there is no other suitable locale available. The value of this field must appear in the list of locales specified by the locales field.
labels
0.6optional
List of all the human-readable, descriptive text strings that describe this Dimension. This list should contain one entry for each locale listed in the locales field, but may contain supplemental entries.

For instance, a dimension configured for three(3) languages English (en = 'Colors'), Spanish (es = 'Colores'), and French (fr = 'Couleurs') may also have a fourth region-specific label for British English (en-GB = 'Colours') to accomodate the appropriate spelling.

rootAspect
0.6optional
Describes and identifies the Aspect that contains the rootNode of this Dimension; this Aspect always logically exists.
rootNode
0.6optional
Describes and identifies the single Root Node for this Dimension; this Node always logically exists.
aspects
0.6optional
List of all the explicitly configured Aspects in this Dimension.

The special Root Aspect is intrinsic to the dimension and implicitly defined; as such, it has its own rootAspect field and does not appear in this list.

nodeAttributes
0.6optional
List of all Node-level Attribute Definitions in this Dimension. Each definition describes the type of data (and any type-specific constraints for that type) that can be stored for that attribute. These definitions are metadata; the actual attribute values must be associated with and stored on individual Nodes in the dimension.

Related API Resources

Example 1

{
  "id"           :"c689acc7-ee13-3482-aa7b-c6a13419431c",
  "name"         :"LARGE_CITIES",
  "locales"      :["es","en","en-GB"],
  "defaultLocale":"es",
  "label":{
    "locale" :"en",
    "value"  :"Large Cities"
  },
  "rootAspect": {
    "id"     :"5289492c-f082-346c-a4a6-eec9f72f1ec3",
    "name"   :"WORLD",
    "label"  :{
      "locale":"en",
      "value" :"The World"
    }
  },
  "rootNode": {
    "id"     : "cc01e450-fe24-11e2-b778-0800200c9a66",
    "name"   : "Any",
    "label"  :{
      "locale":"en",
      "value" :"Anywhere"
    }
  },
  "aspects": [
    {
      "id"   :"6ddc09dc-4560-31d9-854e-9fe670374eb2",
      "name" :"COUNTRY",
      "label":{
        "locale":"en",
        "value" :"Country"
      }
    },
    {
      "id"   :"2b848a8c-c886-3253-921a-77c43cd50aae",
      "name" :"STATE",
      "label":{
        "locale":"en",
        "value" :"State/Province"
      }
    },
    {
      "id"   :"85921462-8431-3951-97c0-558f7b5f8ffc",
      "name" :"CITY",
      "label":{
        "locale":"en",
        "value" :"City"
      }
    }
  ],
  "nodeAttributes": [
    ...
  ]
}