---
title: "UdmClass2Attribute"
url: "https://developer.tesma.com/apis/logistics-api-26/versions/484d1e1b-3201-4f8b-800b-867280d5b6a4/schemas/UdmClass2Attribute"
---

> Full API specification: https://developer.tesma.com/apis/logistics-api-26/versions/484d1e1b-3201-4f8b-800b-867280d5b6a4.md

# UdmClass2Attribute

## OpenAPI definition

```yaml
openapi: 3.1.1
info:
  title: " API v1"
  version: 26.13.0.0
components:
  schemas:
    UdmAttribute:
      properties:
        _changedProperties:
          type:
            - "null"
            - object
        _changedPropertyNames:
          items:
            type: string
          type:
            - "null"
            - array
        _internalReferenceID:
          type:
            - "null"
            - string
        additionalProperties:
          type:
            - "null"
            - object
        autoId:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        dataState:
          $ref: "#/components/schemas/BusinessObjectState"
        description:
          type:
            - "null"
            - string
        format:
          $ref: "#/components/schemas/FeatureFormat"
        id:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        length:
          format: int16
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        numberOfDecimals:
          format: int16
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        units:
          items:
            $ref: "#/components/schemas/UdmUnit"
          type:
            - "null"
            - array
      type: object
    BusinessObjectState:
      type: integer
    GeneralYesNo:
      type: integer
    UdmAllRef:
      properties:
        _changedProperties:
          type:
            - "null"
            - object
        _changedPropertyNames:
          items:
            type: string
          type:
            - "null"
            - array
        _internalReferenceID:
          type:
            - "null"
            - string
        additionalProperties:
          type:
            - "null"
            - object
        dataState:
          $ref: "#/components/schemas/BusinessObjectState"
        dbValue:
          type:
            - "null"
            - string
        description:
          type:
            - "null"
            - string
        id:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        langId:
          format: int16
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        theme:
          type:
            - "null"
            - string
      type: object
    FeatureType:
      type: integer
    FeatureFormat:
      type: integer
    UdmUnit:
      properties:
        _changedProperties:
          type:
            - "null"
            - object
        _changedPropertyNames:
          items:
            type: string
          type:
            - "null"
            - array
        _internalReferenceID:
          type:
            - "null"
            - string
        additionalProperties:
          type:
            - "null"
            - object
        attributeId:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        autoId:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        caption:
          type:
            - "null"
            - string
        dataState:
          $ref: "#/components/schemas/BusinessObjectState"
        factor:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        isDefault:
          type:
            - "null"
            - string
        key:
          type:
            - "null"
            - string
      type: object
    UdmClass2Attribute:
      properties:
        _changedProperties:
          type:
            - "null"
            - object
        _changedPropertyNames:
          items:
            type: string
          type:
            - "null"
            - array
        _internalReferenceID:
          type:
            - "null"
            - string
        additionalProperties:
          type:
            - "null"
            - object
        attribute:
          $ref: "#/components/schemas/UdmAttribute"
        attributeId:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        autoId:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        classId:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        dataState:
          $ref: "#/components/schemas/BusinessObjectState"
        dbValueFormat:
          type:
            - "null"
            - string
        defaultUnit:
          type:
            - "null"
            - string
        defaultUnitInteger:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        defaultValue:
          type:
            - "null"
            - string
        doPrint:
          $ref: "#/components/schemas/GeneralYesNo"
        isDefault:
          $ref: "#/components/schemas/GeneralYesNo"
        isMandatory:
          $ref: "#/components/schemas/GeneralYesNo"
        isSingle:
          $ref: "#/components/schemas/GeneralYesNo"
        linearField:
          type:
            - "null"
            - string
        listId:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        lookUpKey:
          type:
            - "null"
            - string
        lookupValues:
          items:
            $ref: "#/components/schemas/UdmAllRef"
          type:
            - "null"
            - array
        orderPos:
          format: int16
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        valueType:
          $ref: "#/components/schemas/FeatureType"
      type: object
```
