Skip to content

Send bot flag = True for edits#440

Merged
arcstur merged 1 commit into
wikimediabrasil:mainfrom
jakobw:bot-flag-true
Jun 8, 2026
Merged

Send bot flag = True for edits#440
arcstur merged 1 commit into
wikimediabrasil:mainfrom
jakobw:bot-flag-true

Conversation

@jakobw

@jakobw jakobw commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

The Wikibase REST API recently changed its behavior when receiving requests with "bot": true in the request payload. The server no longer rejects such requests if the account associated with the request doesn't have the bot permissions. In those cases, it simply lets the edit go through without marking it as a bot edit (see T421631).

This means that QuickStatements can safely always send "bot": true so that edits made by bots get marked as such. This will not have any effect for edits made by non-bots.

The Wikibase REST API recently changed its behavior when receiving
requests with `"bot": true` in the request payload. The server no longer
rejects such requests if the account associated with the request doesn't
have the bot permissions. In those cases, it simply lets the edit go
through without marking it as a bot edit (see
[T421631](https://phabricator.wikimedia.org/T421631)).

This means that QuickStatements can safely always send `"bot": true` so
that edits made by bots get marked as such. This will not have any
effect for edits made by non-bots.
@lucaswerkmeister

Copy link
Copy Markdown

@arcstur

arcstur commented Jun 8, 2026

Copy link
Copy Markdown
Member

Hi @jakobw and @lucaswerkmeister, thanks for this!! I have tested with my account on Test Wikidata and it works. I don't have a bot account to test it locally. Let's go :D

@arcstur
arcstur merged commit 98c7592 into wikimediabrasil:main Jun 8, 2026
2 checks passed
@jakobw
jakobw deleted the bot-flag-true branch June 9, 2026 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants