文章 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

否