文章 Update Forum REST 端点

URLs

PUT api/v1/forums/{id}.xml (or .json)

UPDATE a forum.

请求参数

名称

类型

描述

必需

默认值

选项

Id

int?

Id

GroupId

int?

Group Id

Name

string

Name

Description

string

Default is an empty string.

AllowedThreadTypes

string

A comma separated list of thread types supported. If not specified the default is 'Discussion'.

DefaultThreadType

string

The default thread type for the forum if both Q&A and Discussion threads are allowed. Default is 'Discussion'.

Enabled

bool?

Default is true.

IndexPosts

bool?

Default is true.

ModeratePosts

bool?

Default is false.

EnablePostStatistics

bool?

Default is true.

EnablePostPoints

bool?

Default is true.

EnableMailingList

bool?

Enable Mailing List

MailingListName

string

Required if EnableMailingList is true

MailingListAddress

string

Required if EnableMailingList is true

EmailFooter

string

Email Footer

EnablePassiveMode

bool?

Enable Passive Mode

PassiveModeAddress

string

Required if EnablePassiveMode is true

MappedGalleryId

int?

Only used when EnableMailingList is true, attachments via email can be created in this gallery. If not specified, attachments will be created on forum posts.

SuggestedAnswerVoteThreshold

int?

Vote threshold at which a reply is marked as suggested

VerifiedAnswerVoteThreshold

int?

Vote threshold at which a reply is marked as verified

ExtendedAttributes

RestExtendedAttributes

Extended Attributes