Thanks for the "bot=0" suggestion. I couldn't find anything about it in the docs.
I have not looked at the code yet, but this warning is actually a bug, because the parameter is recognized.

Actually, it seems to work for a lot of actions, but it doesn't work for page edits. bot=0 will result in a flagged edit. Omission is the way to go there.


2014-04-25 16:12 GMT+02:00 Brad Jorsch (Anomie) <bjorsch@wikimedia.org>:
On Thu, Apr 24, 2014 at 4:32 PM, Niklas Keller <me@kelunik.com> wrote:
Is there a reason why image uploads using the API are automatically flagged as bot edits?

It doesn't look like it's anything to do with the API, it's to do with whether the user has the "bot" flag. An upload via Special:Upload from a bot-flagged account is flagged as bot too. It looks like the same happens with any logged action.
 
I miss an option do deactivate this behavior.

That would be nice. But it looks like the code that does this flagging is buried deep without taking parameters to actually control it, so adding the option to the API in a non-hacky way doesn't seem easy.

OTOH, if you ignore the warning the API will generate about an unused parameter, you could just pass "&bot=0" to the API action=upload call.


--
Brad Jorsch (Anomie)
Software Engineer
Wikimedia Foundation

_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api