Adding machine using Octopus REST API

Hi, I am new to Octopus REST API so you will have to bear with me. I am trying to write an app that could automate the process of adding a machine (both Windows and Linux based) to an Environment in Octopus. I can see from this link that a new machine can be created using “POST /api/machines” http call. However, it doesn’t specify what parameters I need to provide in the http body. Is there any sample http call on creating new machine you can refer me to so that I can use as a reference? Thanks in advance


Hi Ben,

Thanks for getting in touch.

We find that one of the best ways to explore our API is to setup Fiddler (a free web debugging proxy). You can then run commands in the Octopus UI and watch the API that Octopus itself uses (and copy whatever API calls you wish). Attached is an example of Fiddler showing the request and response JSON from the Octopus API traffic for /api/machine.

Hope this helps
Mark Siedle