Talk:API:Edit - Move
From MediaWiki.org
[edit] Move in 1.12.0?
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)
[edit] Default values of parameters?
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)