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 |
否 |