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.

Publishes a draft post, making it visible to community members based on tier visibility settings.

URL Parameters

community_id
integer
required
The ID of the community
id
integer
required
The ID of the community post to publish

Returns

Returns the updated post object with published status and published_at timestamp.
curl -X POST https://api.onlydrams.app/odis/v1/communities/1/posts/2/publish \
     -H "Authorization: Bearer $ACCESS_TOKEN"
{
  "id": 2,
  "title": "New Post Title",
  "content": "<p>Post content...</p>",
  "status": "published",
  "published_at": "2024-11-14T10:00:00Z",
  "visible_to_all_tiers": true,
  "user": {
    "id": 100,
    "username": "whisky_master"
  },
  "community": {
    "id": 1,
    "name": "Whisky Enthusiasts"
  },
  "created_at": "2024-11-14T09:30:00Z",
  "updated_at": "2024-11-14T10:00:00Z"
}

Notes

  • Authorization: Community owner or admin only
  • Visibility: Post becomes visible to members immediately
  • Timestamp: Sets published_at to current time
  • Notifications: Members may receive notifications based on community settings