import Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
const forum = await client.forums.update('id');
console.log(forum.id);{
"id": "<string>",
"experience": {
"id": "exp_xxxxxxxxxxxxxx",
"name": "Trading Signals Chat"
},
"who_can_post": "everyone",
"who_can_comment": "everyone",
"email_notification_preference": "all_admin_posts"
}Update moderation and notification settings for a forum, such as who can post, who can comment, and email notification preferences.
Required permissions:
forum:moderateimport Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
const forum = await client.forums.update('id');
console.log(forum.id);{
"id": "<string>",
"experience": {
"id": "exp_xxxxxxxxxxxxxx",
"name": "Trading Signals Chat"
},
"who_can_post": "everyone",
"who_can_comment": "everyone",
"email_notification_preference": "all_admin_posts"
}A company API key, company scoped JWT, app API key, or user OAuth token. You must prepend your key/token with the word 'Bearer', which will look like Bearer ***************************
The unique identifier of the forum to update. Accepts either an experience ID (e.g. 'exp_xxxxx') or a forum ID.
Parameters for UpdateForum
The banner image displayed at the top of the forum page. Pass null to remove the existing banner.
Show child attributes
Controls how email notifications are sent to members when new posts are created in this forum.
all_admin_posts, only_weekly_summary, none Controls which roles are allowed to comment on posts in this forum.
everyone, admins Controls which roles are allowed to create new posts in this forum.
everyone, admins A successful response
A discussion forum where members can create posts, comment, and react, belonging to an experience.
The unique identifier for the entity
The parent experience that this forum belongs to.
Show child attributes
The permission level controlling who can create new posts. One of: everyone, admins.
everyone, admins The permission level controlling who can comment on posts. One of: everyone, admins.
everyone, admins The email notification setting that controls which posts trigger email alerts. One of: all_admin_posts, only_weekly_summary, none.
all_admin_posts, only_weekly_summary, none Was this page helpful?