I am getting an error 404 trying to use the reindex api. Please show me a JAVA example of the call.
POST /rest/api/2/reindex/issue
I have tried with ISSUE_ID from previous query......
jsonStr = "{\"issueId\": \"" + rs.getString("ISSUE_ID") + "\"}";
response = client.jiraConn.Post("/rest/api/latest/reindex/issue", jsonStr.getBytes(), headers);
and
/rest/api/latest/reindex/issue/" + rs.getString("ISSUE_ID")
Both return error 404
But the jira issue id does exist.