Skip to main content
PATCH
/
repos
/
{owner}
/
{repo}
/
issue-tracker
Edit issue tracker settings
curl --request PATCH \
  --url https://gogs.example.com/api/v1/repos/{owner}/{repo}/issue-tracker \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "enable_issues": true,
  "enable_external_tracker": true,
  "external_tracker_url": "<string>",
  "tracker_url_format": "<string>",
  "tracker_issue_style": "numeric"
}
'

Authorizations

Authorization
string
header
required

Personal access token. Use format: token {YOUR_ACCESS_TOKEN}

Path Parameters

owner
string
required

Repository owner

repo
string
required

Repository name

Body

application/json
enable_issues
boolean
enable_external_tracker
boolean
external_tracker_url
string
tracker_url_format
string
tracker_issue_style
enum<string>
Available options:
numeric,
alphanumeric

Response

Settings updated successfully.