StarterTemplate ASP.NET Host

<back to all web services

RequestTestPatchV2

Test Service

The following routes are available for this service:
PATCH/service/api/v2/projects/{ProjectId}/tests/{Id}Updates the specified fields of 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 that has the fields you need to update

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/RequestTestPatchV2 HTTP/1.1 
Host: rest.qacomplete.smartbear.com 
Content-Type: text/jsv
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: text/jsv
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-01,
	date_last_escalated: 0001-01-01,
	date_updated: 0001-01-01,
	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-01,
	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-01,
			date_updated: 0001-01-01,
			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
}