<div dir="ltr"><div><div><div>Hi Jason, <br><br></div>The correct endpoint is:<br>post /api/v1/suspicion-reasons/{id}<wbr>/changesets/<br><br></div>The suspicion reasons are not reserved for human classification, but it requires a staff account to use this endpoint. We want to open the possibility of some companies and users to use this endpoint, but we didn't defined the rules to do it yet. I'll discuss it with the team next week.<br></div><div><br></div><div>best regards,<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-04-10 22:08 GMT-03:00 Jason Remillard <span dir="ltr"><<a href="mailto:remillard.jason@gmail.com" target="_blank">remillard.jason@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hi,<br><br>I have a changeset classifier that can detect imports, spam, and tagging errors. <br><br><a href="https://github.com/jremillard/osm-changeset-classification" target="_blank">https://github.com/jremillard/<wbr>osm-changeset-classification</a><br><br>I would like to run the classifier and post the detections to OSMCha via this API. <br><br><a href="https://osmcha.mapbox.com/api-docs/#/" target="_blank">https://osmcha.mapbox.com/api-<wbr>docs/#/</a><br><br>At first glance, it is not clear the best way of doing this is. It looks like I want to use suspicion-reasons, since is has capability to mark a changeset as a potential import or spam.<br><br>post /api/v1/suspicion-reasons/{id}<wbr>/changesets/<br><br></div>But it is marked for staff only, it seems like suspicion-reasons is reserved for human classification. <br><br></div>Next would be the tags<br><br>post /api/v1/changesets/{id}/tags/{<wbr>tag_pk}/<br><br></div>The db doesn't have tags for imports or SPAM, just severity.<br><br></div>Also, it seems like it might be a good idea to tag all of my classifications with an specific ID, so we can get a feel for how well its doing versus the current OSM-Compare hand written classifier. <br><br></div><div>Thanks<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">Jason<br></font></span></div>
<br>______________________________<wbr>_________________<br>
osmcha-dev mailing list<br>
<a href="mailto:osmcha-dev@openstreetmap.org">osmcha-dev@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/osmcha-dev" rel="noreferrer" target="_blank">https://lists.openstreetmap.<wbr>org/listinfo/osmcha-dev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Wille<br><a href="http://wille.blog.br" target="_blank">http://wille.blog.br</a><br><a href="http://maption.com.br/" target="_blank">http://maption.com.br/</a><br></div></div></div>
</div>