Lucie added a comment.

They are all in singular. So it's actually "label", "description" and 
"sitelink"- in fact the example  which uses "sitelinks" is wrong.

If you use 
https://www.wikidata.org/w/api.php?action=wbmergeitems&fromid=Q66&toid=Q99&ignoreconflicts=sitelinks|description
 is will return the error

  "code": "failed-modify",
          "info": "Attempted modification of the item failed (Conflicting 
sitelinks for enwiki)",

which is obviously wrong. So if you use 
https://www.wikidata.org/w/api.php?action=wbmergeitems&fromid=Q66&toid=Q99&ignoreconflicts=sitelink|description
 everything works just as expected.

I'm going to fix the example now!


TASK DETAIL
  https://phabricator.wikimedia.org/T93282

REPLY HANDLER ACTIONS
  Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign 
<username>.

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucie
Cc: Lucie, Aklapper, Multichill, Wikidata-bugs, aude



_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to