文章 Update Forum Thread REST 端点

URLs

PUT api/v1/forums/{forumid}/threads/{threadid}.xml (or .json)

UPDATE a forum thread.

请求参数

名称

类型

描述

必需

默认值

选项

ForumId

int

Forum Id

ThreadId

int

Thread Id

Subject

string

Subject

Body

string

Body

IsSticky

bool?

Is Sticky

StickyDate

DateTime?

If a thread is sticky, used to specify how long it should be sticky. If no sticky date provided default is current date + 7 days.

IsFeatured

bool?

Is Featured

FeaturedImage

string

Used to include a featured image when IsFeatured is true.

PostDate

DateTime?

Post Date

IsQuestion

bool?

Only used when the forum being posted to has both discussions and questions.

IsLocked

bool?

Is Locked

SubscribeToThread

bool?

Subscribe To Thread

ContentType

string

Required when updating file attachment.

FileName

string

Required when updating file attachment.

FileData

Byte[]

When adding a post attachment either FileData, FileUrl or FileUploadContext is required.

FileUploadContext

string

When adding a post attachment either FileData, FileUrl or FileUploadContext is required.

FileUrl

string

When adding a post attachment either FileData, FileUrl or FileUploadContext is required.

RemoveAttachment

bool?

Remove Attachment

Tags

string

A comma separated list of tags.

IsAnonymous

bool?

Is Anonymous

HasPoll

bool?

Deprecated in 8.5, use poll embedding instead.

PollTitle

string

Deprecated in 8.5, use poll embedding instead.

PollDescription

string

Deprecated in 8.5, use poll embedding instead.

PollExpirationDate

DateTime?

Deprecated in 8.5, use poll embedding instead.

EditNotes

string

Edit Notes

ExtendedAttributes

RestExtendedAttributes

Extended Attributes