URLs
POST api/v1/forums/{forumid}/threads.xml (or .json)
CREATE a new forum thread.
请求参数
名称 |
类型 |
描述 |
必需 |
默认值 |
选项 |
ForumId |
int |
Forum Id |
是 |
||
Subject |
string |
Subject |
是 |
||
Body |
string |
Body |
是 |
||
IsSticky |
bool? |
Defaults to false if not specified. |
否 |
||
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? |
Default is false. |
否 |
||
FeaturedImage |
string |
Used to include a featured image when IsFeatured is true. |
否 |
||
PostDate |
DateTime? |
Defaults to current datetime if not specified. |
否 |
||
IsQuestion |
bool? |
Default is false. Only used when the forum being posted to has both discussions and questions. |
否 |
||
IsLocked |
bool? |
Default is false. |
否 |
||
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. |
否 |
||
HasPoll |
bool? |
Default is false. 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. |
否 |
||
ExtendedAttributes |
RestExtendedAttributes |
Extended Attributes |
否 |
||
MarkAsRead |
bool? |
Default is false. |
否 |