Create Repository

Creates a new repository in Artifactory with the provided configuration. Supported by local, remote, virtual, and Federated repositories.

Since: 2.3.0

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 default values as defined by the consumed type spec.

For a Smart Remote Repository, set the enabled flag to true under contentSynchronisation. To enable CDN Distribution, set the cdnRedirect flag; this applies to Artifactory Cloud and requires an Enterprise or Enterprise+ license.

Security: Requires an admin user.

Additional examples of repository configuration can be found at: https://docs.jfrog.com/integrations/docs/configuration-json-files#repository-configuration-json

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The repository key

Body Params

Full repository configuration JSON for the repository class (rclass). Use the shape for local, remote, virtual, or federated matching your rclass—each has its own packageType set and fields (do not mix them). Vendor Content-Type values (application/vnd.org.jfrog.artifactory.repositories.*+json) or plain application/json use the same JSON shapes defined in the schemas below.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
:
URL
LoadingLoading…
Response
Choose an example:
text/plain
application/json