Skip to main content

Documentation Index

Fetch the complete documentation index at: https://api.docs.onlydrams.app/llms.txt

Use this file to discover all available pages before exploring further.

ENDPOINTS
GET /odis/v1/communities/:community_id/posts/:community_post_id/comments
GET /odis/v1/comments/:id
POST /odis/v1/communities/:community_id/posts/:community_post_id/comments
PATCH /odis/v1/comments/:id
DELETE /odis/v1/comments/:id

Overview

Community members can comment on posts they have access to. Comments support text content and are associated with specific community posts.

Authentication

Authorization levels:
  • Comment Owner: Can update and delete their own comments
  • Community Owner: Can update and delete all comments in their community
  • Admin: Can update and delete all comments
  • Community Member: Can read comments on posts they have access to

Comment Object

{
  "id": 1,
  "content": "Great post! Thanks for sharing.",
  "user": {
    "id": 200,
    "username": "whisky_lover",
    "avatar_url": "https://storage.googleapis.com/onlydrams/avatars/200.jpg"
  },
  "created_at": "2024-11-14T10:30:00Z",
  "updated_at": "2024-11-14T10:30:00Z"
}

Notifications

If the community has notify_new_comments enabled, the community owner receives an email notification when members post comments.

Access Control

Users must have access to the parent post (based on their tier membership) to:
  • View comments
  • Create comments
  • Interact with comments