Returns the current status of the most recent reindex operation. This includes information about progress, completion status, elapsed time, and job ID.
Example request URI:
http://example.com/confluence/rest/api/index/reindex
Forge and OAuth2 apps cannot access this REST resource.
This request has no parameters.
Returns the current reindex status information if available, or a status message if no reindex information is available.
1
2
3
curl --request GET \
--url 'http://{baseurl}/confluence/rest/api/index/reindex' \
--header 'Accept: application/json'1
2
3
4
5
6
{
"finished": true,
"percentageComplete": 100,
"elapsedTime": "00:00:19",
"jobID": 2154
}Rebuilds Confluence's search index. This operation is only available to system administrators and may take significant time to complete.
Example request URI(s):
http://example.com/confluence/rest/api/index/reindexhttp://example.com/confluence/rest/api/index/reindex?option=CONTENT_ONLY&spaceKey=DEMOhttp://example.com/confluence/rest/api/index/reindex?option=ATTACHMENT_ONLY&option=CONTENT_ONLY&spaceKey=DEMO&spaceKey=TESTForge and OAuth2 apps cannot access this REST resource.
array<string>
array<string>
Message indicating that the reindex task was successfully queued.
1
2
3
curl --request POST \
--url 'http://{baseurl}/confluence/rest/api/index/reindex' \
--header 'Accept: application/json'1
2
3
{
"message": "Reindex was queued successfully, it may take some time to start. To check the status of the reindex job, please use the GET /reindex endpoint once the reindex has started."
}Resets the status of the current in-progress reindex job. This is useful when a reindex job has failed/stalled and needs to be cleared before starting a new reindex operation. This operation is only available to system administrators.
Forge and OAuth2 apps cannot access this REST resource.
This request has no parameters.
The reindex job status was successfully reset.
any
1
2
3
curl --request PUT \
--url 'http://{baseurl}/confluence/rest/api/index/resetjob' \
--header 'Accept: application/json'Removes all content from the search index, effectively clearing the entire search index. This operation is destructive and will require a full reindex to restore search functionality. This operation is only available to system administrators.
Warning: This operation will remove all searchable content from the index. Users will not be able to search for content until a reindex is performed.
Example request URI:
http://example.com/confluence/rest/api/index/unindex
Forge and OAuth2 apps cannot access this REST resource.
This request has no parameters.
The search index was successfully cleared of all content.
any
1
2
3
curl --request POST \
--url 'http://{baseurl}/confluence/rest/api/index/unindex' \
--header 'Accept: application/json'Rate this page: