Description: Creates a new repository in Artifactory with the provided configuration. 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 X or Enterprise+ subscription.
If a repository with the specified repoKey already exists, the call fails with a 400 response.
Missing values are set to the default values as defined by the consumed type spec.
For a repository to be identified as Smart Remote Repository, you need to set the “enabled” flag to true under “contentSynchronisation” (under Repository Configuration JSON ).
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.
Security: Requires an admin user.
Usage: PUT /artifactory/api/repositories/{repoKey}
Sample Usage:
PUT /artifactory/api/repositories/libs-release-local { repository-config.json }