The Discussions Object
This is an object representing a discussion.
Properties
Section titled “Properties”- id number
The numeric ID of the discussion
- title string
Title of the discussion field
- block_uid string
The ID of discussion block
- fieldname string
Technical name of the discussion field
- solved_at string
The time a discussion is resolved. (Format:
YYYY-mm-dd HH:MM) - component string
The component/block name to which the discussion belongs to
- lang string
Language code in which the discussion is present.
- uuid string
Generated UUID string
- last_comment object
The
last_commentis an object that contains the details about the last comment of that discussion.Show child 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 | string
The message of a comment, with the datatype of
nullor a string. - message_json object
An array with properties of the message such as
type,textandattrs.Show child properties
- 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
-
{ "discussion": { "id": 62850, "title": "Body", "block_uid": "b5936adb-cc40-48f7-a8d3-285361030249", "fieldname": "body", "solved_at": null, "component": "page", "lang": "default", "uuid": "46e6030b-80fc-4574-b72d-448796900c98", "last_comment": { "id": 164253, "created_at": "2024-06-03T05:02:37.716Z", "updated_at": "2024-06-03T05:02:37.716Z", "message": null, "message_json": [ { "text": "test", "type": "text" } ], "user_id": 110930, "uuid": "e00c312a-7f6d-4f53-bb03-e55cb476a401" } }}Get in touch with the Storyblok community