Queue an indexing job

POST /staff/indexing_jobs

Input

Name Type Description
target string Required. A string representing the item to index.

You can index the following targets (replace :owner with the name of a user or organization account and :repository with the name of a repository):

Target Description
:owner A user or organization account.
:owner/:repository A repository.
:owner/* All of a user or organization's repositories.
:owner/:repository/issues All the issues in a repository.
:owner/*/issues All the issues in all of a user or organization's repositories.
:owner/:repository/code All the source code in a repository.
:owner/*/code All the source code in all of a user or organization's repositories.

Example

curl -u jwatson -X POST -H "Content-Type: application/json" -d '{"target": "kansaichris/japaning"}' "http://hostname/api/v3/staff/indexing_jobs"

Response

Status: 202 Accepted
{
  "message": "Repository 'kansaichris/japaning' has been added to the indexing queue"
}