Git Integration for Jira Self-Managed (Data Center/Server) Documentation

Enable/Disable Existing Repository API

Only Jira admins can perform the Enable/Disable Existing Repository API call.

URL format

{JIRA_BASE_URL}/rest/gitplugin/1.0/repository/{repoId}/disable?disable=true|false

method

PUT

Utilize the following parameters to control the field values in the URL format:

parameters

Field Description
JIRA_BASE_URL String. Required.

This is your organization’s Jira base URL. For example, https://acmecorp.jira.com.

repoId Integer. Required.

This is the repository ID that your are targeting to enable/disable.

disable Boolean. Required.

When set to disable=true, the status of the target repository in the Manage git repository/integration configuration list becomes DISABLED. Set to disable=false, to enable it again.

 

example

https://acmecorp.jira.com/rest/gitplugin/1.0/repository/2/disable?disable=true

RESULT:

{
  "success": true
}

 

Repository REST APIs

Retrieve Repository List

Add New Repository

Enable/disable Existing Repository (this page)

Update Existing Repository

Delete Existing Repository

Have feedback about this article? Did we miss something? Let us know!
On this page