Update Repos Indexing Configuration

Xray REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

Description: Update the indexed and not indexed repositories in a given binary manger

Security: Requires an admin user

Notes: For Xray version 3.21.2 and above with Projects, a Project Admin with Index Resources privilege can update the indexed and not indexed repositories in a given binary manger using this REST API in the scope of a project, by using the additional query parameter projectKey.

Usage: PUT /api/v1/binMgr/{id}/repos

Consumes: application/json

Response codes:

200: Success

Sample usage:

{
    "indexed_repos": [
        {
            "name": "docker-local",
            "type": "local",
            "pkg_type": "Docker"
        }
    ],
    "non_indexed_repos": [
        {
            "name": "debian-local",
            "type": "local",
            "pkg_type": "Debian"
        }
    ]
}

Response:

{
  "info": "Repositories list has been successfully sent to Artifactory"
}