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:
- Jira administrators
- 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: |
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
}
Reindex REST APIs
Reindex POST API (this page)