StarterTemplate ASP.NET Host

<back to all web services

RequestTestPutV2

Test Service

The following routes are available for this service:
PUT/service/api/v2/projects/{ProjectId}/tests/{Id}Updates a testThe test with the specified ID must exist. The authenticating user must have the Update privilege for Test Library.
Parameters:
NameParameterData TypeRequiredDescription
ProjectIdpathintYesThe ID of the project that contains the test
IdpathintYesThe ID of the test you need to update

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

{"project_id":0,"id":0,"title":"String","status":"String","active":false,"assignee_user_id":0,"description":"String","execution_type":"String","folder_id":0,"owner_user_id":0,"priority":"String","test_steps":[{"expected_result":"String","is_stopped_on_fail":false,"seq":0,"step":"String","step_criteria":"String","call_to_test_id":0,"call_to_test_params":[{"name":"String","value":"String"}]}],"test_type":"String","original_id":0,"default_host_id":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"id":0,"title":"String","status":"String","project_id":0,"__permissions":{"acl":0},"active":false,"assigned_to_name":"String","assignee_user_id":0,"avg_run_time":0,"avg_run_time_formatted":"String","create_user_id":0,"date_created":"0001-01-01T00:00:00.0000000","date_last_escalated":"0001-01-01T00:00:00.0000000","date_updated":"0001-01-01T00:00:00.0000000","description":"String","execution_type":"String","folder_id":0,"folder_name":"String","import_id":0,"last_escalation_rule":"String","last_escalation_rule_id":0,"last_run_by_name":"String","last_run_by_user_id":0,"last_run_date":"0001-01-01T00:00:00.0000000","last_run_status":"String","last_run_test_set":0,"last_run_test_set_title":"String","nbr_escalations":0,"nbr_events":0,"nbr_fail_status":0,"nbr_files":0,"nbr_notes":0,"nbr_pass_status":0,"nbr_steps":0,"nbr_times_run":0,"notes_description":"String","original_id":0,"owner_name":"String","owner_user_id":0,"priority":"String","test_steps":[{"id":0,"__permissions":{"acl":0},"create_user_id":0,"date_created":"0001-01-01T00:00:00.0000000","date_updated":"0001-01-01T00:00:00.0000000","expected_result":"String","is_stopped_on_fail":false,"nbr_files":0,"seq":0,"step":"String","step_criteria":"String","update_user_id":0,"call_to_test_id":0,"call_to_test_title":"String","type":"String","call_to_test_params":[{"name":"String","value":"String"}]}],"test_type":"String","update_user_id":0,"user_name":"String","version":0,"default_host_id":0,"default_host_name":"String"}