1. The Discussions Object

The Discussions Object

Properties

  • id

    number

    The numeric ID

  • title

    string

    Title of the discussion field

  • block_uid

    string

    id of discussion block component

  • solved_at

    string

    The time a discussion is resolved. (Format: YYYY-mm-dd HH:MM)

  • fieldname

    string

    Technical name of the discussion field

  • component

    string

    The component of the discussion

  • lang

    string

    Language code of the current language (can be requested with the language API parameter)

  • last_comment

    object

    The last_comment is an object in the discussion that contains the user_id, id, message and message_json

    • user_id

      number

      User/numeric id of collaborator

    • id

      number

      The numeric ID

    • message

      null or string

      The message of a comment, with the datatype of null or a string.

    • message_json

      object

      An array with text and type properties of type strings.

      • text

        string

        A text property usually of type String

      • type

        string

        The type of your field

    • created_at

      string

      Creation date (Format: yyyy-MM-dd'T'HH:mm:ssZ)

    • updated_at

      string

      Latest update date (Format: yyyy-MM-dd'T'HH:mm:ssZ)

Example Object
{
    "discussion": {
        "id": 666,
        "title": "Headline",
        "block_uid": "8c4679fb-68f6-4727-acf0",
        "fieldname": "headline",
        "solved_at": "2024-02-06T11:43:51.522Z",
        "component": "teaser",
        "lang": "default",
        "last_comment": {
            "user_id": 123,
            "id": 666,
            "message": null,
            "message_json": [
                {
                    "text": "hello this is a comment",
                    "type": "text"
                }
            ],
            "created_at": "2024-02-06T11:39:07.225Z",
            "updated_at": "2024-02-06T11:39:07.225Z"
        }
    }
}