The Discussions Object
This is an object representing a discussion.
Properties
Section titled “Properties”-
idnumberThe numeric ID of the discussion
-
titlestringTitle of the discussion field
-
block_uidstringThe ID of discussion block
-
fieldnamestringTechnical name of the discussion field
-
solved_atstringThe time a discussion is resolved. (Format:
YYYY-mm-dd HH:MM) -
componentstringThe component/block name to which the discussion belongs to
-
langstringLanguage code in which the discussion is present.
-
uuidstringGenerated UUID string
-
last_commentobjectThe
last_commentis an object that contains the details about the last comment of that discussion.Show child properties
-
idnumberThe numeric ID
-
created_atstringCreation date (Format:
yyyy-MM-dd'T'HH:mm:ssZ) -
updated_atstringLatest update date (Format:
yyyy-MM-dd'T'HH:mm:ssZ) -
messagenull | stringThe message of a comment, with the datatype of
nullor a string. -
message_jsonobjectAn array with properties of the message such as
type,textandattrs.Show child properties
-
textstringThe text part
-
typestringThe type
-
attrsobjectAttributes
-
-
user_idnumberUser/numeric id of collaborator
-
uuidstringGenerated 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" } }}Was this page helpful?
This site uses reCAPTCHA and Google's Privacy Policy (opens in a new window) . Terms of Service (opens in a new window) apply.
Get in touch with the Storyblok community