API:Threadaction

Prefix: None Required Rights: None POST Only? No

Allows actions to be taken on threads and posts in threaded discussions.

Parameters

  • bumpIf set, overrides default behaviour as to whether or not to . Type: string
  • gettoken. Type: string
  • methodFor getting inline edit forms, the method to get a form for. Type: string
  • newparentIf merging a thread, the ID or title for its new parent. Type: string
  • operand. Type: string
  • reasonIf applicable, the reason/summary for the action. Type: string
  • renderIf set, on post/reply methods, the top-level thread after the change will be rendered and returned in the result.. Type: string
  • signatureSpecifies the signature to use for that post. Can be NULL to specify the default signature. Type: string
  • sortkeySpecifies the timestamp to which to set a thread's sort key. Must be in the form YYYYMMddhhmmss, a unix timestamp or 'now'.. Type: string
  • subjectThe subject to set for the new or split thread. Type: string
  • talkpageThe talkpage to act on (if applicable). Type: string
  • textThe text of the post to create. Type: string
  • threadA list (pipe-separated) of thread IDs or titles to act on.
  • threadactionThe action to take.
Type: one of markread, markunread, split, merge, reply, newthread, setsubject, setsortkey, edit, addreaction, deletereaction, inlineeditform
  • tokenAn edit token (from ?action=query&prop=info&intoken=edit). Type: string
  • typeSpecifies the type of reaction to add. Type: string
  • valueSpecifies the value associated with the reaction to add. Type: string

Errors Codes

  • already-top-levelThis thread is already a top-level thread..
  • badtokenInvalid token.
  • invalid-parent-threadThe parent thread you specified was neither the title of a thread, nor a thread ID..
  • invalid-sortkeyYou must specify a valid timestamp for the sortkey parameter. It should be in the form YYYYMMddhhmmss, a unix timestamp or "now"..
  • invalid-subjectThe subject you specified is not valid.
  • invalid-subjectYou must specify a thread to edit.
  • invalid-talkpageThe talkpage you specified is invalid, or does not have discussion threading enabled..
  • mustbepostedThe threadaction module requires a POST request.
  • no-parent-threadYou must specify a new parent thread to merge beneath.
  • no-specified-threadsYou must specify a thread to change the subject of.
  • no-specified-threadsYou must specify a thread to reply to.
  • no-specified-threadsYou must specify a thread to set the sortkey of.
  • no-specified-threadsYou must specify a thread to merge.
  • no-specified-threadsYou must specify a thread to split.
  • no-textYou must include text in your post.
  • no-valid-subjectNo subject, or an invalid subject, was specified.
  • noactionThe action parameter must be set.
  • noapiwriteEditing of this wiki through the API is disabled. Make sure the $wgEnableWriteAPI=true; statement is included in the wiki's LocalSettings.php file.
  • nosubjectThe subject parameter must be set.
  • notalkpageThe talkpage parameter must be set.
  • notokenThe token parameter must be set.
  • perm_result-protectedYou cannot reply to this thread, because the perm_result is protected from replies..
  • readapideniedYou need read permission to use this module.
  • talkpage-protectedYou cannot post to the specified talkpage, because it is protected from new posts.
  • too-many-threadsYou may only edit one thread at a time.
  • too-many-threadsYou may only change the subject of one thread at a time.
  • too-many-threadsYou may only split one thread at a time.
  • writeapideniedYou're not allowed to edit this wiki through the API.
Category:Auto-generated PageCategory:MediaWiki API
Category:Auto-generated Page Category:MediaWiki API