文章 Create Forum Reply REST 端点

URLs

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

CREATE a reply to a forum thread.

POST api/v1/forums/threads/{threadid}/replies.xml (or .json)

CREATE a reply to a forum thread.

请求参数

名称

类型

描述

必需

默认值

选项

ThreadId

int

Thread Id

ForumId

int?

Forum Id

ParentReplyId

int?

Parent Reply Id

Body

string

Body

PostDate

DateTime?

Defaults to current datetime if not specified.

IsSuggestedAnswer

bool?

Default is false. Only applied to replies to threads that are questions.

IsAnswer

bool?

Only applied to replies to threads that are questions.

SubscribeToThread

bool?

Default is false.

Tags

string

A comma separated list of tags.

ContentType

string

Used when adding a post attachement.

FileName

string

Used when adding a post attachement.

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.

IsAnonymous

bool?

Default is false.

ExtendedAttributes

RestExtendedAttributes

Extended Attributes