From f0beb74953479b99c4811da542c2f8cfea2ebd0b Mon Sep 17 00:00:00 2001 From: Nathan Day <87125117+dadofsambonzuki@users.noreply.github.com> Date: Thu, 27 Feb 2025 16:31:52 +0000 Subject: [PATCH] Updated RPC API (markdown) --- RPC-API.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/RPC-API.md b/RPC-API.md index 44add4e..8f8ba01 100644 --- a/RPC-API.md +++ b/RPC-API.md @@ -96,15 +96,23 @@ This is an example response to a `berlin` query param : curl --data-binary '{"jsonrpc": "2.0", "method": "get_element", "params": {"id": "node:12141608846"}, "id": 1}' https://api.btcmap.org/rpc ``` -### Example reponse +### Example response _TODO_ ## set_element_tag -- token -- name -- value +This sets tags on elements within BTC Map only - these are not tags directly on OSM elements. + +### Params + +`id` : OSM element in the form `element_type:id`. e.g. `node:12345` or `way:12345`. + +`name` : Tag name. Free text. + +`value` : Tag value. Free text. + +### Example request ```bash curl --data-binary '{"jsonrpc": "2.0", "method": "set_element_tag", "params": {"id": "node:12141608846", "name": "foo", "value": "bar"}, "id": 1}' https://api.btcmap.org/rpc