https://bugzilla.wikimedia.org/show_bug.cgi?id=55834

       Web browser: ---
            Bug ID: 55834
           Summary: api wbeditentity only accepts references and
                    qualifiers grouped by property calue
           Product: MediaWiki extensions
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: WikidataRepo
          Assignee: wikidata-b...@lists.wikimedia.org
          Reporter: addshorew...@gmail.com
                CC: wikidata-b...@lists.wikimedia.org
    Classification: Unclassified
   Mobile Platform: ---

https://www.wikidata.org/wiki/Wikidata:Contact_the_development_team#New_API_wbeditentity:_Help

           "references": [
               {
                   "snaks": [
                       {
                           "snaktype": "value",
                           "property": "P17",
                           "datavalue": {
                               "value": {
                                   "entity-type": "item",
                                   "numeric-id": 144
                               },
                               "type": "wikibase-entityid"
                           }
                       }
                   ]
               }
           ]
will not work
        "references":[
           {
              "snaks":{
                 "P56":[
                    {
                       "snaktype":"value",
                       "property":"P56",
                       "datavalue":{
                          "value":"src",
                          "type":"string"
                       }
                    }
                 ]
              }
           }
        ]
will work

Both of the above should probably work for both references and qualifiers

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to