connorshea added a comment.
I tried using the HTTP URL, but I still get a 500 error
(`{\"code\":\"unexpected-error\",\"message\":\"Unexpected error\"}`).
{
"statement": {
"mainsnak": {
"snaktype": "value",
"property": "P740",
"datatype": "globe-coordinate",
"datavalue": {
"type": "globecoordinate",
"value": {
"latitude": 52.516666666667,
"longitude": 13.383333333333,
"precision": 0.016666666666667,
"globe": "http://www.wikidata.org/entity/Q2"
}
}
},
"qualifiers": {
},
"references": [
],
"rank": "normal",
"type": "statement"
},
"bot": true
}
If I add an altitude of null (the property is deprecated based on the docs,
but I figured I'd try), I get a 403 error
(`"{\"error\":\"rest-write-denied\",\"httpCode\":403,\"httpReason\":\"Forbidden\"}"`).
Not sure what's up with that. I'm able to make an edit that hits the same
endpoint and adds a string statement to this item in the same script, so it
shouldn't be due to the lack of auth or anything.
Also, unrelated but the GET request returns the `mainsnak.datavalue.type` as
`globe_coordinate` but it seems to be that the POST request only accepts
`globecoordinate`?
TASK DETAIL
https://phabricator.wikimedia.org/T315158
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: connorshea
Cc: WMDE-leszek, Addshore, Ollie.Shotton_WMDE, connorshea, Aklapper,
Astuthiodit_1, karapayneWMDE, Invadibot, maantietaja, ItamarWMDE, Akuckartz,
Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen,
rosalieper, Scott_WUaS, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]