title: How to add devices using openHAB REST API
body: <p>I am looking for a way to discover a USB zstick "/dev/ttyACM0" using OpenHab command line interface as I am not going to be using a GUI and I need to create a script to automate few things.</p>
  
  <p>In their website <a href="https://www.openhab.org/docs/configuration/restdocs.html" rel="nofollow noreferrer">here</a> and <a href="http://demo.openhab.org:8080/doc/index.html#/" rel="nofollow noreferrer">here</a> OpenHab have some documentation, and that's what I found for discovery:</p>
  
  <p>GET /discovery
  POST /discovery/bindings/{bindingId}/scan</p>
  
  <p>however I was unable to make that into a useful curl command. any idea on where to start?</p>