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.

Archives a published post, hiding it from community members while preserving the content.

URL Parameters

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

Returns

Returns the updated post object with archived status.
curl -X POST https://api.onlydrams.app/odis/v1/communities/1/posts/2/archive \
     -H "Authorization: Bearer $ACCESS_TOKEN"
{
  "id": 2,
  "title": "New Post Title",
  "content": "<p>Post content...</p>",
  "status": "archived",
  "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-14T11:30:00Z"
}

Notes

  • Authorization: Community owner or admin only
  • Visibility: Post is hidden from members immediately
  • Preservation: Content, images, polls, and comments are preserved
  • Reversible: Post can be republished later
  • Published Date: Original published_at timestamp is maintained