Update Repository Configuration

JFrog REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

Description: Updates an existing repository configuration in Artifactory with the provided configuration elements. Supported by local, remote, virtual, and Federated repositories.

Since: 2.3.0

Notes:

  • Supported JFrog Subscriptions:

    - Local, remote, and virtual repositories require a Pro subscription.

    - Federated repositories are supported from Artifactory 7.18.3 and require an Enterprise or Enterprise+ subscription.

  • To enable CDN Distribution on the repository, set the cdnRedirect flag on the repository. Applies to Artifactory Cloud and requires an Enterprise or Enterprise+ license.

  • The class of a repository the rclass attribute cannot be updated.

Security: Requires an admin user

Usage: POST /api/repositories/{repoKey} -H "Content-Type: application/json"

Consumes: application/json (application/vnd.org.jfrog.artifactory.repositories.LocalRepositoryConfiguration+json), application/json (application/vnd.org.jfrog.artifactory.repositories.RemoteRepositoryConfiguration+json), application/json (application/vnd.org.jfrog.artifactory.repositories.VirtualRepositoryConfiguration+json), application/vnd.org.jfrog.artifactory.repositories.FederatedRepositoryConfiguration+json

Sample Usage:

POST /api/repositories/libs-release-local -H "Content-Type: application/json"
{
repository-config.json
}