Skip to main content
Version: Next

ConfigurationTemplateImportPreview

Outcome of validating a configuration template against an asset draft, with the patched attributes to apply on confirmation.

customAttributes object[]

Attributes skipped because they were added to the target asset rather than defined by its asset type.

  • Array [
  • namestring

    Attribute name.

    typestring

    Value descriptor name of the attribute, e.g. number.

  • ]
  • failurestring

    Why the document cannot be imported; absent when it can.

    Possible values: [INVALID_JSON, UNSUPPORTED_VERSION, MISSING_REQUIRED_FIELD, MALFORMED_ATTRIBUTE_ENTRY, INVALID_META_ITEM, VALUE_VIOLATES_CONSTRAINTS, NO_IMPORTABLE_ATTRIBUTES, DRAFT_MISMATCH]

    failureLocation object

    Where a configuration template cannot be imported; a part is absent when the failure lies above it.

    attributestring

    Attribute name of the entry.

    Example: temperature
    metaItemstring

    Name of the metadata item within the entry.

    Example: forecast
    parameterstring

    Path of the parameter within the metadata item, or of the field within the entry or the document.

    Example: pastCount
    importableAttributes object[]

    Attributes whose metadata will be replaced.

  • Array [
  • namestring

    Attribute name.

    typestring

    Value descriptor name of the attribute, e.g. number.

  • ]
  • missingAttributes object[]

    Attributes skipped because the target asset does not have them.

  • Array [
  • namestring

    Attribute name.

    typestring

    Value descriptor name of the attribute, e.g. number.

  • ]
  • patchedAttributes object

    The submitted draft attributes with the metadata of every importable attribute replaced, keyed by attribute name.

    delegate object
    property name* AttributeObject

    Named typed asset value. Attribute JSON includes name, type, value, optional Unix-millisecond timestamp, and optional metadata.

    meta object
    delegate object
    property name* MetaItemObject
    namestringrequired

    Machine-readable name.

    Possible values: non-empty, Value must match regular expression ^\w+$

    Example: temperature
    type object
    arrayDimensionsinteger<int32>
    constraints object[]
  • Array [
  • messagestring
    type stringrequired

    Possible values: []

  • ]
  • format object
    asBooleanboolean
    asDateboolean
    asMomentaryboolean
    asNumberboolean
    asOnOffboolean
    asOpenClosedboolean
    asPressedReleasedboolean
    asSliderboolean
    dateStylestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    daystring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    dayPeriodstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    erastring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    fractionalSecondDigitsinteger<int32>
    hourstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    hour12boolean
    iso8601boolean
    maximumFractionDigitsinteger<int32>
    maximumSignificantDigitsinteger<int32>
    minimumFractionDigitsinteger<int32>
    minimumIntegerDigitsinteger<int32>
    minimumSignificantDigitsinteger<int32>
    minutestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    momentJsFormatstring
    monthstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    multilineboolean
    resolutionnumber
    secondstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    timeStylestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    timeZoneNamestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    useGroupingboolean
    weekstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    weekdaystring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    yearstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    jsonTypestring
    metaUseOnlyboolean
    namestring

    Possible values: Value must match regular expression ^\w+(\[\])?$

    unitsstring[]
    property name* MetaItemObject
    namestringrequired

    Machine-readable name.

    Possible values: non-empty, Value must match regular expression ^\w+$

    Example: temperature
    type object
    arrayDimensionsinteger<int32>
    constraints object[]
  • Array [
  • messagestring
    type stringrequired

    Possible values: []

  • ]
  • format object
    asBooleanboolean
    asDateboolean
    asMomentaryboolean
    asNumberboolean
    asOnOffboolean
    asOpenClosedboolean
    asPressedReleasedboolean
    asSliderboolean
    dateStylestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    daystring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    dayPeriodstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    erastring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    fractionalSecondDigitsinteger<int32>
    hourstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    hour12boolean
    iso8601boolean
    maximumFractionDigitsinteger<int32>
    maximumSignificantDigitsinteger<int32>
    minimumFractionDigitsinteger<int32>
    minimumIntegerDigitsinteger<int32>
    minimumSignificantDigitsinteger<int32>
    minutestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    momentJsFormatstring
    monthstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    multilineboolean
    resolutionnumber
    secondstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    timeStylestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    timeZoneNamestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    useGroupingboolean
    weekstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    weekdaystring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    yearstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    jsonTypestring
    metaUseOnlyboolean
    namestring

    Possible values: Value must match regular expression ^\w+(\[\])?$

    unitsstring[]
    namestringrequired

    Machine-readable name.

    Possible values: non-empty, Value must match regular expression ^\w+$

    Example: temperature
    timestampinteger<int64>

    Value timestamp in Unix milliseconds; zero means no explicit timestamp was supplied.

    Example: 1767225600000
    type object
    arrayDimensionsinteger<int32>
    constraints object[]
  • Array [
  • messagestring
    type stringrequired

    Possible values: []

  • ]
  • format object
    asBooleanboolean
    asDateboolean
    asMomentaryboolean
    asNumberboolean
    asOnOffboolean
    asOpenClosedboolean
    asPressedReleasedboolean
    asSliderboolean
    dateStylestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    daystring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    dayPeriodstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    erastring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    fractionalSecondDigitsinteger<int32>
    hourstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    hour12boolean
    iso8601boolean
    maximumFractionDigitsinteger<int32>
    maximumSignificantDigitsinteger<int32>
    minimumFractionDigitsinteger<int32>
    minimumIntegerDigitsinteger<int32>
    minimumSignificantDigitsinteger<int32>
    minutestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    momentJsFormatstring
    monthstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    multilineboolean
    resolutionnumber
    secondstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    timeStylestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    timeZoneNamestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    useGroupingboolean
    weekstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    weekdaystring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    yearstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    jsonTypestring
    metaUseOnlyboolean
    namestring

    Possible values: Value must match regular expression ^\w+(\[\])?$

    unitsstring[]
    property name* AttributeObject

    Named typed asset value. Attribute JSON includes name, type, value, optional Unix-millisecond timestamp, and optional metadata.

    meta object
    delegate object
    property name* MetaItemObject
    namestringrequired

    Machine-readable name.

    Possible values: non-empty, Value must match regular expression ^\w+$

    Example: temperature
    type object
    arrayDimensionsinteger<int32>
    constraints object[]
  • Array [
  • messagestring
    type stringrequired

    Possible values: []

  • ]
  • format object
    asBooleanboolean
    asDateboolean
    asMomentaryboolean
    asNumberboolean
    asOnOffboolean
    asOpenClosedboolean
    asPressedReleasedboolean
    asSliderboolean
    dateStylestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    daystring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    dayPeriodstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    erastring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    fractionalSecondDigitsinteger<int32>
    hourstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    hour12boolean
    iso8601boolean
    maximumFractionDigitsinteger<int32>
    maximumSignificantDigitsinteger<int32>
    minimumFractionDigitsinteger<int32>
    minimumIntegerDigitsinteger<int32>
    minimumSignificantDigitsinteger<int32>
    minutestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    momentJsFormatstring
    monthstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    multilineboolean
    resolutionnumber
    secondstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    timeStylestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    timeZoneNamestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    useGroupingboolean
    weekstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    weekdaystring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    yearstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    jsonTypestring
    metaUseOnlyboolean
    namestring

    Possible values: Value must match regular expression ^\w+(\[\])?$

    unitsstring[]
    property name* MetaItemObject
    namestringrequired

    Machine-readable name.

    Possible values: non-empty, Value must match regular expression ^\w+$

    Example: temperature
    type object
    arrayDimensionsinteger<int32>
    constraints object[]
  • Array [
  • messagestring
    type stringrequired

    Possible values: []

  • ]
  • format object
    asBooleanboolean
    asDateboolean
    asMomentaryboolean
    asNumberboolean
    asOnOffboolean
    asOpenClosedboolean
    asPressedReleasedboolean
    asSliderboolean
    dateStylestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    daystring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    dayPeriodstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    erastring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    fractionalSecondDigitsinteger<int32>
    hourstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    hour12boolean
    iso8601boolean
    maximumFractionDigitsinteger<int32>
    maximumSignificantDigitsinteger<int32>
    minimumFractionDigitsinteger<int32>
    minimumIntegerDigitsinteger<int32>
    minimumSignificantDigitsinteger<int32>
    minutestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    momentJsFormatstring
    monthstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    multilineboolean
    resolutionnumber
    secondstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    timeStylestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    timeZoneNamestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    useGroupingboolean
    weekstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    weekdaystring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    yearstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    jsonTypestring
    metaUseOnlyboolean
    namestring

    Possible values: Value must match regular expression ^\w+(\[\])?$

    unitsstring[]
    namestringrequired

    Machine-readable name.

    Possible values: non-empty, Value must match regular expression ^\w+$

    Example: temperature
    timestampinteger<int64>

    Value timestamp in Unix milliseconds; zero means no explicit timestamp was supplied.

    Example: 1767225600000
    type object
    arrayDimensionsinteger<int32>
    constraints object[]
  • Array [
  • messagestring
    type stringrequired

    Possible values: []

  • ]
  • format object
    asBooleanboolean
    asDateboolean
    asMomentaryboolean
    asNumberboolean
    asOnOffboolean
    asOpenClosedboolean
    asPressedReleasedboolean
    asSliderboolean
    dateStylestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    daystring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    dayPeriodstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    erastring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    fractionalSecondDigitsinteger<int32>
    hourstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    hour12boolean
    iso8601boolean
    maximumFractionDigitsinteger<int32>
    maximumSignificantDigitsinteger<int32>
    minimumFractionDigitsinteger<int32>
    minimumIntegerDigitsinteger<int32>
    minimumSignificantDigitsinteger<int32>
    minutestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    momentJsFormatstring
    monthstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    multilineboolean
    resolutionnumber
    secondstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    timeStylestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    timeZoneNamestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    useGroupingboolean
    weekstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    weekdaystring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    yearstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    jsonTypestring
    metaUseOnlyboolean
    namestring

    Possible values: Value must match regular expression ^\w+(\[\])?$

    unitsstring[]
    typeMismatches object[]

    Attributes skipped because the target attribute has a different type.

  • Array [
  • importedTypestring

    Value descriptor name within the imported document.

    namestring

    Attribute name.

    targetTypestring

    Value descriptor name of the target attribute.

  • ]
  • ConfigurationTemplateImportPreview
    {
    "customAttributes": [
    {
    "name": "string",
    "type": "string"
    }
    ],
    "failure": "INVALID_JSON",
    "failureLocation": {
    "attribute": "temperature",
    "metaItem": "forecast",
    "parameter": "pastCount"
    },
    "importableAttributes": [
    {
    "name": "string",
    "type": "string"
    }
    ],
    "missingAttributes": [
    {
    "name": "string",
    "type": "string"
    }
    ],
    "patchedAttributes": {
    "delegate": {}
    },
    "typeMismatches": [
    {
    "importedType": "string",
    "name": "string",
    "targetType": "string"
    }
    ]
    }