create_comment
Post a comment or threaded reply in Loomio discussions, polls, stances, or outcomes; provide body text and a discussion_id or parent_id/parent_type.
Instructions
Post a comment in a thread: 1 call (2 when discussion_id is a short key). Required body (+ body_format: 'html' for HTML; Loomio stores an omitted format as Markdown) and a target: discussion_id for a top-level comment, or parent_id + parent_type ('Comment' for a threaded reply; 'Poll' / 'Stance' / 'Outcome'). A new thread: create_discussion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| parent_id | No | Comment, Poll, Stance or Outcome id to reply to (needs parent_type). | |
| body_format | No | Default 'md'; 'html' when `body` is HTML. | |
| parent_type | No | Type of parent_id; required with it. | |
| discussion_id | No | Discussion id or short key (+1 call) for a top-level comment; or use parent_id. |