Comment Thread List
comment_thread_listList all comments in an entity's thread, including replies, so you can rebuild the discussion tree from each comment's parent ID.
Instructions
List comment thread for an entity.
Returns the whole thread, replies included. It used to add
filter[pid] = 0 to get top-level comments only, but pid is an
entity reference to the parent comment, so JSON:API rejected it with
"must end with one of the following specifiers" -- and had it accepted
pid.id = 0 it would have matched nothing, since no comment has id 0.
Each row carries its own pid, which is what a caller needs to build
the tree.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | Yes | ||
| field_name | No | comment | |
| entity_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||