API talk:Move
Add topicMove in 1.12.0?
[edit]action=move
does not work for me in 1.12.0, even with $wgEnableWriteAPI=true
. My code gets this error:
unknown_action: Unrecognised value for parameter 'action'
The exact same code works perfectly with the API in 1.13 alpha. Maybe the docs on the article page, which say that Move is available in 1.12, are wrong? includes/api/ApiMove.php
is present in 1.12. --Maiden taiwan 19:49, 22 May 2008 (UTC)
- I tested this on 1.12, and it works for me. Please verify that you set $wgEnableWriteAPI = true; in the right LocalSettings.php, that you placed it near the bottom of the file, and that you actually uploaded it to the web server (if applicable). --Catrope 20:23, 22 May 2008 (UTC)
Default values of parameters?
[edit]Is 'movetalk' set by default or not set by default? Also, is there a default string for 'reason'? I'm guessing 'noredirect' is NOT set by default, as this is what you would expect using the WUI. I think the default settings should be documented here. --Dmb 08:51, 18 January 2009 (UTC)
- None of the boolean parameters are set by default, otherwise it would be impossible to unset them. 'reason' defaults to being empty. --Catrope 18:10, 18 January 2009 (UTC)
- Ahh, OK. I was thinking they would be set to 'false' or '0', but I remember now that the API doesn't work in that way. Thanks for the info. --Dmb 16:59, 20 January 2009 (UTC)
Noredirect fails without 'nosuppress' warning
[edit]The 'Noredirect' flag works only if the user has the 'suppressredirect' right, and contrary to the claims of this page, without the right the flag is silently ignored without throwing an error message. (See code at [1].) Will submit a patch once I get a round tuit... Jpatokal 04:33, 15 December 2010 (UTC)
Bot & Flood
[edit]Moves should be eligible for bot and flood flags. - TheDaveRoss (talk) 21:18, 4 March 2016 (UTC)
The move module requires a POST request
[edit]I don't know how to fix this error? Alphama (talk) 07:20, 11 May 2016 (UTC)
- That'll depend entirely on the utility or programming language you're using. I don't believe any major browsers support POST requests from the address bar, however some have extensions available that allow you to do so...mostly intended for testing. Otherwise, just Google for whatever you're using along with the words GET and POST, and you'll probably find something to explain what you need to do. â Robin Hood (talk) 19:09, 11 May 2016 (UTC)
Is "noredirect" not working for anyone else?
[edit]The noredirect
flag is broken for me (on MW 1.33), the API call never leaves a redirect behind for me even with the flag off. Not able to investigate what's happening in core at the moment, but thought I should note this here at this talk page in case someone else enounters the same problem. Ataaseq (talk) 22:02, 7 July 2020 (UTC)