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

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

# CHGResultOfChatThread

## OpenAPI definition

```yaml
openapi: 3.1.1
info:
  title: " API v1"
  version: 26.13.0.0
components:
  schemas:
    CHGMessage:
      anyOf:
        - $ref: "#/components/schemas/CHGMessageTextMessage"
        - $ref: "#/components/schemas/CHGMessageExternalMessage"
        - $ref: "#/components/schemas/CHGMessageCHGExceptionMessage"
        - $ref: "#/components/schemas/CHGMessageBase"
      type: object
    ChatThread:
      properties:
        _changedProperties:
          type:
            - "null"
            - object
        _changedPropertyNames:
          items:
            type: string
          type:
            - "null"
            - array
        _internalReferenceID:
          type:
            - "null"
            - string
        additionalProperties:
          type:
            - "null"
            - object
        createDate:
          format: date-time
          type: string
        createUser:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        dataState:
          $ref: "#/components/schemas/BusinessObjectState"
        hasReferenceInformation:
          type: boolean
        id:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        name:
          type:
            - "null"
            - string
        posts:
          items:
            $ref: "#/components/schemas/ChatPost"
          type:
            - "null"
            - array
        referenceRecordKey:
          type:
            - "null"
            - string
        referenceType:
          type:
            - "null"
            - string
        updateDate:
          format: date-time
          type: string
        updateUser:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
      type: object
    CHGMessageTextMessage:
      properties:
        $type:
          enum:
            - CHG.iCLASSFW.Base.Foundation.TextMessage,
              CHG.iCLASSFW.Base.Foundation
          type: string
        _additionalInfos:
          type:
            - "null"
            - string
        _message:
          type:
            - "null"
            - string
        _messageLogId:
          type:
            - "null"
            - string
        _messageType:
          $ref: "#/components/schemas/MessageType"
        _traceId:
          type:
            - "null"
            - string
        errorCategory:
          type:
            - "null"
            - string
        errorCode:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        formatArguments:
          type:
            - "null"
            - array
        messageKey:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        messageLogId:
          type:
            - "null"
            - string
        source:
          type:
            - "null"
            - string
        sourceObjectIdentifier:
          $ref: "#/components/schemas/ObjectInstanceIdentifier"
        traceId:
          type:
            - "null"
            - string
      required:
        - $type
        - _messageType
    CHGMessageExternalMessage:
      properties:
        $type:
          enum:
            - CHG.iCLASSFW.Base.Foundation.ExternalMessage,
              CHG.iCLASSFW.Base.Foundation
          type: string
        _additionalInfos:
          type:
            - "null"
            - string
        _message:
          type:
            - "null"
            - string
        _messageLogId:
          type:
            - "null"
            - string
        _messageType:
          $ref: "#/components/schemas/MessageType"
        _traceId:
          type:
            - "null"
            - string
        errorCategory:
          type:
            - "null"
            - string
        errorCode:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        formatArguments:
          type:
            - "null"
            - array
        messageKey:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        messageLogId:
          type:
            - "null"
            - string
        source:
          type:
            - "null"
            - string
        sourceObjectIdentifier:
          $ref: "#/components/schemas/ObjectInstanceIdentifier"
        traceId:
          type:
            - "null"
            - string
      required:
        - $type
        - _messageType
    CHGMessageCHGExceptionMessage:
      properties:
        $type:
          enum:
            - CHG.iCLASSFW.Base.Foundation.CHGExceptionMessage,
              CHG.iCLASSFW.Base.Foundation
          type: string
        _additionalInfos:
          type:
            - "null"
            - string
        _messageLogId:
          type:
            - "null"
            - string
        _messageType:
          $ref: "#/components/schemas/MessageType"
        _traceId:
          type:
            - "null"
            - string
        additionalInfos:
          type:
            - "null"
            - string
        errorCategory:
          type:
            - "null"
            - string
        errorCode:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        formatArguments:
          type:
            - "null"
            - array
        message:
          type:
            - "null"
            - string
        messageKey:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        messageLogId:
          type:
            - "null"
            - string
        source:
          type:
            - "null"
            - string
        sourceObjectIdentifier:
          $ref: "#/components/schemas/ObjectInstanceIdentifier"
        traceId:
          type:
            - "null"
            - string
      required:
        - $type
        - _messageType
    CHGMessageBase:
      properties:
        _additionalInfos:
          type:
            - "null"
            - string
        _messageLogId:
          type:
            - "null"
            - string
        _messageType:
          $ref: "#/components/schemas/MessageType"
        _traceId:
          type:
            - "null"
            - string
        errorCategory:
          type:
            - "null"
            - string
        errorCode:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        formatArguments:
          type:
            - "null"
            - array
        messageKey:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        messageLogId:
          type:
            - "null"
            - string
        source:
          type:
            - "null"
            - string
        sourceObjectIdentifier:
          $ref: "#/components/schemas/ObjectInstanceIdentifier"
        traceId:
          type:
            - "null"
            - string
      required:
        - _messageType
    BusinessObjectState:
      type: integer
    ChatPost:
      properties:
        _changedProperties:
          type:
            - "null"
            - object
        _changedPropertyNames:
          items:
            type: string
          type:
            - "null"
            - array
        _internalReferenceID:
          type:
            - "null"
            - string
        additionalProperties:
          type:
            - "null"
            - object
        createDate:
          format: date-time
          type: string
        createUser:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        dataState:
          $ref: "#/components/schemas/BusinessObjectState"
        ownerId:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        ownerType:
          type:
            - "null"
            - string
        parentPost:
          $ref: "#/components/schemas/ChatPost"
        parentPostId:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        postId:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        recipientPosts:
          items:
            $ref: "#/components/schemas/ChatPost"
          type:
            - "null"
            - array
        recipients:
          items:
            $ref: "#/components/schemas/ChatPostRecipient"
          type:
            - "null"
            - array
        shouldSave:
          type: boolean
        text:
          type:
            - "null"
            - string
        thread:
          $ref: "#/components/schemas/ChatThread"
        threadId:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        updateDate:
          format: date-time
          type: string
        updateUser:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
      type: object
    MessageType:
      type: integer
    ObjectInstanceIdentifier:
      properties:
        keyValues:
          type:
            - "null"
            - object
        referenceID:
          type:
            - "null"
            - string
        typeName:
          type:
            - "null"
            - string
      type: object
    ChatPostRecipient:
      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"
        postId:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        recipientId:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
        recipientType:
          type:
            - "null"
            - string
        threadId:
          format: int32
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
      type: object
    CHGResultOfChatThread:
      properties:
        messages:
          items:
            $ref: "#/components/schemas/CHGMessage"
          type:
            - "null"
            - array
        response:
          $ref: "#/components/schemas/ChatThread"
      type: object
```
