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

否