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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /json/reply/RequestHostPatchV2 HTTP/1.1 
Host: rest.qacomplete.smartbear.com 
Content-Type: application/json
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: application/json
Content-Length: length

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