On Sun, Dec 13, 2009 at 2:23 PM, Ian Dees <ian.d...@gmail.com> wrote:

> On Sun, Dec 13, 2009 at 1:16 PM, Ævar Arnfjörð Bjarmason <ava...@gmail.com
> > wrote:
>
>> On Sun, Dec 13, 2009 at 17:54, hy-soft <hy-s...@sha-mash.de> wrote:
>> > the wiki says:
>> > http://wiki.openstreetmap.org/wiki/API_v0.6
>> >
>> > Delete: DELETE /api/0.6/[node|way|relation]/#id
>> >
>> > Expects a valid XML representation of the element to be deleted.
>> > ---
>> > What exactly does the term 'valid XML representation of the element'
>> > mean?
>> >
>> > Is it the same what I would get when downloading the item?
>>
>> The API docs suck,
>>
>> I beg to differ. The API 0.6 docs are quite good.
>
> The docs tell you exactly what you need: a "valid XML representation of the
> element to be deleted" is exactly that. If you want to delete node id 54321
> with tags foo=bar and bar=baz, then you send:
>
> DELETE /api/0.6/node/54321
>
> with content:
>
> <osm>
> <node id="54321">
>   <tag k="foo" v="bar"/>
>   <tag k="bar" v="baz"/>
> </node>
> </osm>
>

I thought you needed the version (and I forget if it's the new version or
the old version).  Will it really work without the version?
_______________________________________________
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev

Reply via email to