Search Storyblok's Documentation
  1. The Comments Object

The Comments Object

This is an object representing a comment.

Properties

  • id

    number

    The numeric ID

  • 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)

  • message

    null or string

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

  • message_json

    object

    The message_json property is an array containing JSON objects representing the comments’ messages.

    • text

      string

      The text part

    • type

      string

      The type

    • attrs

      object

      Attributes

  • user_id

    number

    User/numeric id of collaborator

  • uuid

    string

    Generated UUID string

Example Object
{
   "comments":[
      {
         "user_id":99734,
         "id":141546,
         "message":null,
         "message_json":[
            {
               "text":"hello 4",
               "type":"text"
            }
         ],
         "created_at":"2024-02-06T22:11:00.119Z",
         "updated_at":"2024-02-06T22:11:00.119Z"
      }
   ]
}