Krenair

WIP ApiRevisionDelete auto-generated doc

Mar 12th, 2013
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. * action=revisiondelete *
  2. Delete a revision/log entry/file revision
  3. https://www.mediawiki.org/wiki/API:RevisionDelete
  4.  
  5. This module requires read rights
  6. This module requires write rights
  7. This module only accepts POST requests
  8. Parameters:
  9. ids - The revision/log/oldimage IDs you want to delete
  10. This parameter is required
  11. Separate values with '|'
  12. Maximum number of values 50 (500 for bots)
  13. token - Your edit token
  14. This parameter is required
  15. reason - The reason given for deleting these entries
  16. type - The type of entries you're deleting
  17. One value: revision, logging, oldimage
  18. Default: revision
  19. hidetext - Whether or not to hide the text of these entries. Don't set this parameter if you want to leave the current status.
  20. Can be empty, or One value: yes, no
  21. hidesummary - Whether or not to hide the summaries of these entries. Don't set this parameter if you want to leave the current status.
  22. Can be empty, or One value: yes, no
  23. hideusername - Whether or not to hide the username of these entries. Don't set this parameter if you want to leave the current status.
  24. Can be empty, or One value: yes, no
  25. suppress - Whether or not to suppress these entries (unlikely to be available to all users)
  26. Example:
  27. Suppress the text, summary, and username, of revisions 1 and 2:
  28. api.php?action=revisiondelete&ids=1|2&token=123ABC&reason=Dissent&hidetext=Yes&hidesummary=Yes&hideusername=Yes&suppress=
Advertisement
Add Comment
Please, Sign In to add comment