Dominicbm created this task. Dominicbm added projects: Wikidata, StructuredDataOnCommons, Documentation. Restricted Application added a subscriber: Aklapper.
TASK DESCRIPTION For API edits to create or update claims, the input syntax varies based on the data type of the property being used. The number of example(s) in the documentation are small, and do not cover all cases. For example, https://www.wikidata.org/w/api.php?action=help&modules=wbsetclaimvalue has a single example, which will only show you how to add an Item type claim, but this approach will not work for adding strings. https://www.wikidata.org/w/api.php?action=help&modules=wbcreateclaim has 4 examples, but still wouldn't help you to post a monolingual text claim like P1476 <https://phabricator.wikimedia.org/P1476> ("title"), for which you need to know that you put in a dict with a language code. And so on. For most of these, if you are willing to dig, you can intuit the correct inputs from looking at the data structure in JSON for existing items, but this should presumably actually be documented somewhere in full for usability. TASK DETAIL https://phabricator.wikimedia.org/T242225 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dominicbm Cc: Aklapper, Dominicbm, Pavithraes, darthmon_wmde, Nandana, JKSTNK, Cpaulf30, Lahi, Gq86, GoranSMilovanovic, Ivana_Isadora, Jayprakash12345, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, srodlund, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, Jay8g, Quiddity
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
