Page MenuHomePhabricator

Problem creating new Wikidata item with API action wbeditentity
Closed, ResolvedPublic

Description

I am trying to create a new item with pre-set sitelink and title via Wikidata API, action "wbeditentity" (through OAuth). The parameters I pass are:

[format] => json
[action] => wbeditentity
[new] => item
[data] => {"sitelinks":{"enwiki":{"site":"enwiki","title":"Honey_Lake,_Wisconsin"}},"labels":{"en":{"language":"en","value":"Honey Lake, Wisconsin"}}}
[token] => 6e1f8f0da652a69d1b5eb0e3800305b857067043+\
[bot] => 1
[summary] => #petscan

The response is:

{"servedby":"mw1134","error":{"code":"permissiondenied","info":"You do not have the permissions needed to carry out this action. (You do not have sufficient permissions)","messages":[{"name":"wikibase-api-permissiondenied","parameters":[],"html":{"*":"You do not have the permissions needed to carry out this action."}}],"*":"See https://www.wikidata.org/w/api.php for API usage"}}

Edit is attempted under my own user name.

This used to work, at least until a few days ago! What changed? Can you fix it?

Event Timeline

Magnus claimed this task.

Never mind, just an overzealous blocker. API could say "you're blocked" in addition to "no permission" though...

Hi @Magnus, I'm sorry again for your block experience. It's not funny. I'm trying to help to improve the current situation. What do you think about this related topic?

T309328: IP range-blocks should not block trusted logged-in users (autopatrolled, bot, bureaucrat, checkuser, interface-admin, steward)

I am not sure if I have described the current situation correctly.