Discuss Kit icon

Discuss Kit

Consume Discuss Kit API

Comment → Publish

AI-generated

Overview

This node interacts with the Discuss Kit API to manage comments. Specifically, for the 'Comment' resource and 'Publish' operation, it allows publishing a comment by making an API request to the relevant endpoint. This is useful in scenarios where users want to programmatically publish comments on posts or other objects within the Discuss Kit platform.

Use Case Examples

  1. Publishing a comment after it has been drafted or created to make it visible publicly.
  2. Automating comment moderation workflows by publishing approved comments automatically.

Output

JSON

  • id - The unique identifier of the published comment
  • content - The content of the published comment
  • object
    • id - The ID of the object (e.g., post) the comment is associated with
  • createdAt - Timestamp when the comment was created
  • updatedAt - Timestamp when the comment was last updated
  • pinned - Indicates if the comment is pinned
  • userDid - Identifier of the user who made the comment

Dependencies

  • Discuss Kit API access via an API key or authentication token

Troubleshooting

  • Ensure the comment ID provided is valid and exists; otherwise, the API will return an error.
  • Check API authentication credentials if requests fail due to authorization errors.
  • If the comment is already published or in an invalid state, the API might reject the publish request.

Links

Discussion