POST

Re-indexes the search index of the provided list of repositories

Forces the provided repositories to reindex with the search server. For each repository the current index on the search server will be deleted and it will be queued for re-indexing. Note that this can result in diminished instance performance as deleting and reindexing a large repository can take some time

Request

Request bodyapplication/json

array<RestRepositorySelector>

projectKey

string

slug

string

Responses

This status code has no content.

POST/indexing/latest/reindex
1 2 3 4 5 6 7 8 9 curl --request POST \ --url 'http://{baseurl}/rest/indexing/latest/reindex' \ --header 'Content-Type: application/json' \ --data '[ { "projectKey": "PRJ", "slug": "my-repo" } ]'
POST

Restarts the search indexing worker thread

Restarts the search indexing worker thread. By default this will cause the currently running queue event to be terminated. This behaviour can be modified by providing the graceful shutdown flag in the request.

Request

Request bodyapplication/json

gracefulShutdown

boolean

waitForRestart

boolean

Responses

application/json

any

POST/indexing/latest/restart
1 2 3 4 5 6 7 8 curl --request POST \ --url 'http://{baseurl}/rest/indexing/latest/restart' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "gracefulShutdown": true, "waitForRestart": true }'
GET

Get pull requests in inbox

Returns a page of pull requests in the user's inbox.

Request

Query parameters

role

string

limit

integer

start

integer

Responses

default response

application/json;charset=UTF-8

any

GET/api/latest/inbox/pull-requests
1 2 curl --request GET \ --url 'http://{baseurl}/rest/api/latest/inbox/pull-requests'
GET

Get total number of pull requests in inbox

Returns the total number of pull requests in the user's inbox

Request

This request has no parameters.

Responses

default response

application/json;charset=UTF-8

any

GET/api/latest/inbox/pull-requests/count
1 2 curl --request GET \ --url 'http://{baseurl}/rest/api/latest/inbox/pull-requests/count'

Rate this page: