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

Contact Support: Server  
Contact Support: Data Center  

Remove Integration – API

Deletes the existing integration from the Git Integration for Jira app repository configuration.

Only Jira admins can perform the Remove Integration API call.

Remove Existing Integration

url/rest/gitplugin/1.0/integration/{integrationId}

method — DELETE

Parameters

Paramater Condition
integrationId Integer. Required.

This is the ID of the existing integration. For example, /integration/3.

deleteFiles Boolean. Optional.

Indicates whether the integration folder is also deleted from the Jira server. If set to true, the repository folder is deleted from the Jira server.

response Deletes the integration from the Git Integration for Jira app repository configuration. If the deleteFiles parameter is set to true, the folders of all the repositories of the integration are also deleted from the Jira instance.
format http://jira.yourorg.com/rest/gitplugin/1.0/integration/[integrationId]?deleteFiles=true

Examples:

Example 1:

http://jira.yourorg.com/rest/gitplugin/1.0/integration/154?deleteFiles=true

Response:
{
  "success": true
}

Example 2:

http://jira.yourorg.com/rest/gitplugin/1.0/integration/5?deleteFiles=true

Response:
{
  "success": false,
  "error": "Repository with id=5 does not exist",
  "advice": "Please try again with an existing repository id."
}
Have feedback about this article? Did we miss something? Let us know!
On this page