Xcode server api doesn't work for creating bot

Are the server apis supposed to work with xcode 9? I see that the documentation for Xcode server api is no longer maintained. I got the api urls by inspecting network on viewing bots in browser. The web page GETs bots from https://myserver/xcode/internal/api/bots, so I tried a POST and followed the structure as mentioned in the documentation. However I consistently get a 502 Proxy error. I tried different combinations of configuration properties and sometimes I just get a 500. Anyone got the API to create a bot working for the server on Xcode 9?