Ask the Community
Groups
Tip: Example using container/update web service - Connect IT Community | Kaseya
<main> <article class="userContent"> <p><strong>QUESTION:</strong></p> <p>How do I use use web services to update a container?</p> <p> </p> <p><strong>RESOLUTION:</strong></p> <p>This is an example of a JSON formatted request to update a container (your serial numbers will be different):</p> <p>#!/bin/sh</p> <p>curl -k -i -H "Content-Type: application/json" -H "Accept: application/json" -X \<br>POST -d '{<br> "username": "your_user_name_here",<br> "password": "your_password_here",<br> "containerDetail": {<br> "name": "container 3",<br> "serialNumber": 600008,<br> "type": "test",<br> "departmentName":null,<br> "comment": "created via api",<br> "commentVisible": false,<br> "actionProfileSerialNumber": -1,<br> "severityRule":null,<br> "rules":null,<br> "members":[<br> {<br> "serialNumber":1180009,<br> "type":"test",<br> "containerName":"",<br> "deviceName":"malmo router",<br> "testName":"System Uptime"<br> }<br> ],<br> "readOnly":false,<br> "useMessageEvents":false,<br> "smartNotify":false<br> }<br>}' <a rel="nofollow" href="/home/leaving?allowTrusted=1&target=https%3A%2F%2Ftraverse_server%2Fapi%2Fjson%2Fadmin%2Fcontainer%2Fupdate">https://traverse_server/api/json/admin/container/update</a></p> <p> </p> <p><strong>APPLIES TO:</strong></p> <p>All versions of Traverse </p> <p> </p> <p><strong>REFERENCE:</strong></p> <p>None</p> </article> </main>