InfoboardComments
Introduction
InfoboardComments provide discussion on an InfoboardPost. Their visibility always depends on the parent post and can be narrowed by a comment-specific visibility constraint.
Comment author metadata is derived from the authenticated identity and can account for temporary authentication and group-account confirmation.
The text field uses the shared Rich Text HTML format.
Model Definition
Alias
infoboardComment
Relations
Visibility constraint types
department- Limit the comment to the author's department.private- Limit the comment to users with the applicable private-comment access and allowed department context.null- Do not impose a comment-specific visibility constraint.
Computed Properties
hash- Hashed representation of the commentid.
Capabilities
Targetables - Comments inherit visibility from the parent post's Targetables and do not accept independent assignment input.
Entity Permissions - Comments inherit channel Entity Permissions through their parent post and do not own independent grants.
URL Context - Comment URLs resolve to access-checked context information.
Translations - The
textfield is translatable.Notifications - Creating or changing comment text can notify eligible users connected to the parent post when its channel enables notifications.
Reactions - Comments accept reactions when their parent post allows them.
List
List InfoboardComments visible to the current authenticated User.
Definition
GET /api/infoboard/posts/comments
Behavior
A comment must be visible through its parent post and satisfy its own
visibility_constraint_type.Comment owners, parent-post owners, and explicit entity grants can provide additional access where the applicable permission strategy allows it.
Example Request
Example Response
List by Post
List visible InfoboardComments for one InfoboardPost.
Definition
GET /api/infoboard/posts/{infoboardPost}/comments
Route Parameters
infoboardPost
integer | string
InfoboardPost ID or hash.
Behavior
The parent post and every returned comment must be visible to the authenticated user.
Example Request
Example Response
Show
Show one visible InfoboardComment by ID or hash.
Definition
GET /api/infoboard/posts/comments/{infoboardComment}
Route Parameters
infoboardComment
integer | string
InfoboardComment ID or hash.
Behavior
Parent-post visibility and the comment's visibility constraint both apply.
Example Request
Example Response
Create
Create a new InfoboardComment for one InfoboardPost.
Definition
POST /api/infoboard/posts/{infoboardPost}/comments
Route Parameters
infoboardPost
integer | string
InfoboardPost ID or hash.
Request Keys
lang_id
string
system language
Language key for the translatable comment text.
text*
string
-
Comment content, which can contain HTML.
Keys with * are required.
Behavior
The parent post must allow comments, and the authenticated real user must be permitted to comment on it.
post_id,department_id,user_id, andgroup_account_user_idare derived from the route and authenticated identity; client-provided values are replaced.When the post requires user confirmation, the active confirmed user must be a non-group account. Otherwise the real authenticated user becomes the author.
When the post forces its comment visibility constraint, the post's
comment_visibility_constraint_typereplaces the client value.Creating a comment can trigger notifications for eligible users connected to the parent post.
Example Request
Example Response
Reset Relations
Reset selected dependent relations of an InfoboardComment.
Definition
POST /api/infoboard/posts/comments/{infoboardComment}/reset
Route Parameters
infoboardComment
integer | string
InfoboardComment ID or hash.
Request Keys
reactions
boolean
false
Delete reactions when true.
Behavior
reactionsmust betrue; otherwise no relation is reset and the operation returns an error response.
Example Request
Example Response
Update
Update an existing InfoboardComment.
Definition
PUT /api/infoboard/posts/comments/{infoboardComment}
Route Parameters
infoboardComment
integer | string
InfoboardComment ID or hash.
Request Keys
lang_id
string
Language key for the translatable comment text.
text
string
Comment content, which can contain HTML.
Behavior
post_idcannot be changed. Client-provided author and department fields are removed.Changing
textupdatesuser_id,group_account_user_id, anddepartment_idfrom the authenticated identity and can trigger updated-comment notifications.Changing
textremoves its stored translations.visibility_constraint_typecannot be changed while the parent post forces its configured comment constraint.
Example Request
Example Response
Delete
Delete an existing InfoboardComment.
Definition
DELETE /api/infoboard/posts/comments/{infoboardComment}
Route Parameters
infoboardComment
integer | string
InfoboardComment ID or hash.
Behavior
The comment is soft-deleted, and notifications targeting it are deleted.
When the parent post does not require user confirmation, authorization uses the real authenticated user rather than a leftover temporary identity.
Example Request
Example Response
Last updated