BetaOptional BetaauthorWho wrote it.
Absent when the server carries the author instead of the document. The Studio's comments dataset stores it on the document, so it is present on everything written today, but an agent-authored comment records attribution elsewhere. Render a fallback rather than assuming a user id.
Optional BetacontentA copy of the content the comment was written about.
BetacreatedBetadocumentThe document the thread hangs on, always the published id.
BetadocumentBetafieldThe field the thread hangs off, for example title.
BetaidOptional BetalastSet once the message has been rewritten.
BetamessageOptional BetaparentAbsent on the comment that starts a thread.
BetareactionsOptional BetaselectionSet when the comment is anchored to a run of text in a Portable Text field.
Optional BetastateLocal only. Present while a create is failing or being retried.
BetastatusBetathread
A single comment.
Deliberately not the stored document. Comments are moving from per-dataset addon datasets to an organization-level store, and the two disagree on the document type, on how the commented document is referenced, and on where the author is recorded. Everything here reads the same on both sides, so an app written against this survives the move.
Threads are flat: every comment in a thread shares a
threadId, the thread's first comment has noparentCommentId, and replies carry that first comment'sid. Use CommentThread to work with them grouped.