Install and start Postman. You can elect to create an account or not. You can also elect to create a new item using the wizard, or just close the modal and jump in. Let’s do that!
For the below, my Open-AudIT server is running on 192.168.84.4. You should substitute the IP address of your Open-AudIT server.
First, you need to make a post to /login to get a cookie. Set the dropdown to POST and the URL to. Set the header Accept to application/json. Set the Body to form-data and provide the username and password keys, with values as appropriate for your installation. By default, it will look as below. Now click the Send button.
Once that’s done, it’s time to request some data. Make a GET request toand you should get a JSON response containing a list of devices. You can see the start of the JSON in the screenshot below.
You’ll need to create a JSON object and assign it to the “data” item to do this. It’s not too difficult. Your JSON object should look like below (formatted and indented for easy reading).
"description": "My New Description"
It looks worse than it is. Normally you would use code to do this, so it’s a simple two line conversion. Because we’re using Postman, we’ll have to do it ourselves. A useful site is https://jsonlint.com/
So now you have your payload, let’s send it to Open-AudIT. Make a new PATCH request and use the URL