Scan Now

Xray REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

Description: Enables you to index resources on-demand, even those that were not marked for indexing

Security:Requires an Admin user.

Usage: POST /api/v2/index

Note: Not supported for Builds.

Sample Request

{   
  "repo_path":"local-maven-repo/org/jenkins-ci/main/jenkins-war/2.289.1/jenkins-war-2.289.1.war"
}

Sample Response

{
   "sent_to_reindex": {
       "artifacts": [
           {
               "repository": "local-maven-repo",
               "path": "org/jenkins-ci/main/jenkins-war/2.289.1/jenkins-war-2.289.1.war"
           }
       ]
   }
}

Response Codes:

200-Success

400- Failure