POST SUT Update Method

This method updates a system under test (SUT) by ID.

Syntax:

POST /api/sut/<id>/update

Curl

$> curl -X POST 'http://localhost:8080/api/sut/5ca50165be870f3ac2000002/update' -H 'accept: application/json' -H 'Content-Type: application/json' -H 'Authorization: Basic YWRtaW46YWRtaW4=' -d {"name":"new name","description":"An old SUT","address":"192.168.9.5","port":5902,"sut_type":"vnc","is_active":true,"manufacturer":"acer","model":"aspire","os":"windows","version":"xp"}

Raw Request

POST /api/sut/5ca50165be870f3ac2000002/update HTTP/1.1

 

Host: localhost:8080

 

Authorization: Basic YWRtaW46YWRtaW4=

 

Content-Type: application/json

 

Content-Length: 154

 

{"name":"new name","description":"An old SUT","address":"192.168.9.5","port":5902,"sut_type":"vnc","is_active":true,"manufacturer":"acer","model":"aspire","os":"windows","version":"xp"}

Write Keys

Parameter Type
name String
description String
address String
port Integer
sut_type String enum['vnc', 'rdp', 'tcp' ]
is_active Boolean
manufacturer String
model String
os String
version String
password String
user_name

String

rdp_height Integer
rdp_width Integer

Response Body

{

"_id": "5ca50165be870f3ac2000002",

"created_at": "2019-04-03T12:54:29.433-06:00",

"updated_at": "2019-04-03T12:54:29.433-06:00",

"name": "new name",

"description": "An old SUT",

"address": "192.168.9.5",

"port": 5902,

"sut_type": "vnc",

"is_active": true,

"manufacturer": "acer",

"model": "aspire",

"os": "windows",

"version": "xp",

"monitoring": {

"status": "SUT Monitoring Disabled",

"last_updated": "2019-05-15T11:47:29-06:00",

"status_description": "SUT Monitoring is disabled"

},

"tags": {}

}

 

This topic was last updated on July 13, 2019, at 11:22:05 AM.

Eggplant icon Eggplantsoftware.com | Documentation Home | User Forums | Support | Copyright © 2019 Eggplant