Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

/rest/{version}/defectTrackers/{defectTrackerId}/update

Descriptor

Value

HTTP Method

PUT

Description

Update fields of a Defect Tracker

Required Permission

Manage Defect Trackers

Version Introduced

2.5.1.17

Request Header Parameters

Parameter

Value

Required

Description

Accept

String

Yes

A value of ‘application/json’ must be provided.

Request PUT Data Parameters

Parameter

Value

Required

Description

name

String

No

The new name to give the defect tracker.

url

String

No

The new URL to give the defect tracker.

defaultUsername

String

Yes

The user to set as the defaultUsername, this field is required to ensure access to the defect tracker is retained.

defaultPassword

String

Yes

The password to go along with the specified defaultUsername.

Sample Call:

Code Block
curl -H 'Accept: application/json' -H "Authorization: APIKEY {apiKey}" -X PUT --data 'name=Rest Test 4&defaultUsername=validUsername&defaultPassword=validPassword&url=https://yourproject.atlassian.net/' http://localhost:8080/threadfix/rest/latest/defectTrackers/4/update

Sample Output:

Code Block
{
  "message": "",
  "success": true,
  "responseCode": -1,
  "object": "Fields Updated Successfully."
}

Page Tree
rootDefect Trackers 3.0 API - WIP