StarterTemplate ASP.NET Host

<back to all web services

RequestHostPostV2

TestHost Service

The following routes are available for this service:
POST/service/automation/v2/hostsAdds a new test hostThe authenticating user must have Read access to Test Hosts. There must be no host with this name.
    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.
  • DeptId: Your department ID.
  • AgentVersion: Version of the agent on the host.
Parameters:
NameParameterData TypeRequiredDescription
DeptIdqueryintNoThe ID of the department that includes the host

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/RequestHostPostV2 HTTP/1.1 
Host: rest.qacomplete.smartbear.com 
Content-Type: text/jsv
Content-Length: length

{
	host_name: String,
	host_configuration: String,
	agents: 
	[
		String
	],
	os: String,
	is_active: False,
	dept_id: 0,
	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
}