StarterTemplate ASP.NET Host

<back to all web services

RequestDefectPut

Defect Service

The following routes are available for this service:
PUT/service/api/v1/projects/{ProjectId}/defects/{Id}Updates a defectThe defect with the specified ID must exist. The authenticating user must have the Update privilege for Defects.
Parameters:
NameParameterData TypeRequiredDescription
ProjectIdpathintYesThe ID of the project that contains the defect
IdpathintYesThe ID of the defect 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/RequestDefectPut HTTP/1.1 
Host: rest.qacomplete.smartbear.com 
Content-Type: text/jsv
Content-Length: length

{
	project_id: 0,
	id: 0,
	title: String,
	status: String,
	act_hrs: 0,
	actual_results: String,
	assignee_user_id: 0,
	description: String,
	est_hrs: 0,
	est_hrs_remaining: 0,
	expected_results: String,
	folder_id: 0,
	functional_area_code: String,
	act_start: 0001-01-01,
	act_finish: 0001-01-01,
	est_start: 0001-01-01,
	est_finish: 0001-01-01,
	how_found_code: String,
	issue_code: String,
	module_code: String,
	owner_user_id: 0,
	resolution_code: String,
	pct_complete: 0,
	priority_code: String,
	resolution: String,
	severity_code: String,
	software_version_code: String,
	steps_to_repro: String,
	original_id: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	id: 0,
	title: String,
	status: String,
	__permissions: 
	{
		acl: 0
	},
	act_finish: 0001-01-01,
	act_hrs: 0,
	act_start: 0001-01-01,
	actual_results: String,
	assigned_to_name: String,
	assignee_user_id: 0,
	closed_by: 0,
	closed_by_name: String,
	date_closed: 0001-01-01,
	date_created: 0001-01-01,
	date_opened: 0001-01-01,
	date_resolved: 0001-01-01,
	date_updated: 0001-01-01,
	description: String,
	est_finish: 0001-01-01,
	est_hrs: 0,
	est_hrs_remaining: 0,
	est_start: 0001-01-01,
	expected_results: String,
	folder_id: 0,
	folder_name: String,
	functional_area_code: String,
	how_found_code: String,
	import_id: 0,
	issue_code: String,
	module_code: String,
	nbr_events: 0,
	nbr_files: 0,
	nbr_notes: 0,
	nbr_tasks: 0,
	notes_description: String,
	opened_by: 0,
	opened_by_company: String,
	opened_by_email: String,
	opened_by_name: String,
	original_id: 0,
	origin_code: String,
	owner_name: String,
	owner_user_id: 0,
	pct_complete: 0,
	priority_code: String,
	project_id: 0,
	resolution: String,
	resolution_code: String,
	resolved_by: 0,
	resolved_by_name: String,
	severity_code: String,
	software_version_code: String,
	steps_to_repro: String,
	update_user_id: 0,
	user_name: String
}