StarterTemplate ASP.NET Host

<back to all web services

RequestHostPatchV2

TestHost Service

The following routes are available for this service:
PATCH/service/automation/v2/hosts/{HostId}Updates an existing test hostThe authenticating user must have Read and Update access to Test Hosts. The specified test host must exist.
    RequestHostPost: Test host information.
  • HostName: The computer name.
  • HostConfiguration: Hardware and/or software information.
  • Agents: Test runners on the host.
  • OS: The operating system's name and version.
  • IsActive: True if tests can be run on this host; otherwise, false.
  • AgentVersion: Version of the agent on the host.
Parameters:
NameParameterData TypeRequiredDescription
HostIdpathintYesThe ID of the host computer

To override the Content-type in your clients HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsv/reply/RequestHostPatchV2 HTTP/1.1 
Host: rest.qacomplete.smartbear.com 
Content-Type: text/jsv
Content-Length: length

{
	host_id: 0,
	host_name: String,
	host_configuration: String,
	agents: 
	[
		String
	],
	os: String,
	is_active: False,
	agent_version: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	id: 0,
	host_name: String,
	host_configuration: String,
	agents: 
	[
		String
	],
	os: String,
	is_active: False,
	security_token: String,
	agent_version: String
}