Forums

Update moderation and notification settings for a forum, such as who can post, who can comment, and email notification preferences.

Required permissions:

  • forum:moderate
patch/forums/{id}

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Path parameters

id, string required

The unique identifier of the forum to update. Accepts either an experience ID (e.g. 'exp_xxxxx') or a forum ID.

Request body

object required

Parameters for UpdateForum

banned_words, string[] nullable

A list of words that are automatically blocked from posts in this forum. For example, ['spam', 'scam'].

banner_image, object nullable

The banner image displayed at the top of the forum page. Pass null to remove the existing banner.

email_notification_preference, 'all_admin_posts' | 'only_weekly_summary' | 'none' nullable

Email notification preference option for a forum feed

who_can_comment, 'everyone' | 'admins' nullable

Who can comment on a forum feed

who_can_post, 'everyone' | 'admins' nullable

Who can post on a forum feed

Response

A successful response

Forum required

A discussion forum where members can create posts, comment, and react, belonging to an experience.

banned_words, string[] required

A list of words that are automatically filtered from posts in this forum.

banner_image, object nullable required

The banner image displayed at the top of the forum page. Null if no banner has been uploaded.

email_notification_preference, 'all_admin_posts' | 'only_weekly_summary' | 'none' required

The email notification setting that controls which posts trigger email alerts. One of: all_admin_posts, only_weekly_summary, none.

experience, object required

The parent experience that this forum belongs to.

id, string required

The unique identifier for the entity

who_can_comment, 'everyone' | 'admins' required

The permission level controlling who can comment on posts. One of: everyone, admins.

who_can_post, 'everyone' | 'admins' required

The permission level controlling who can create new posts. One of: everyone, admins.

Example response

{
  "banner_image": {
    "content_type": "image/jpeg",
    "filename": "document.pdf",
    "url": "https://media.whop.com/abc123/optimized.jpg"
  },
  "experience": {
    "id": "exp_xxxxxxxxxxxxxx",
    "name": "Detailing Tips Chat"
  }
}

Changes

    • info

      added the required property banned_words to the response with the status

    • info

      added the required property banner_image to the response with the status

    • info

      added the required property experience/is_public to the response with the status