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

Contact Support: Server  
Contact Support: Data Center  

Reindex POST API

Starts the reindex process in a separate thread and returns the result immediately.

There are two types of users who can perform the Reindex POST API call:

  1. Jira administrators
  2. Jira user who has all of the following:
    • View/browse permissions to the project;
    • View Development Tools permissions to the same project; and
    • The repository is associated to the project.

Reindex POST API

url
/rest/gitplugin/1.0/index.json

method
POST

Parameters

Parameter Condition
repoId Array of Long. Repository ID.  Form parameter.

Example:
Form param (repoId: [133])

Response

JSON

Example:

http://jira.yourorg.com/rest/gitplugin/1.0/index.json

Body, JSON(application/json):
{
  "repoId": [133]
}

-----------------------

Response:
{
  "success":true,
  "finished":true,
  "threadId": xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
}
Have feedback about this article? Did we miss something? Let us know!
On this page