Set Primary Key

JFrog REST APIs

Content Type
REST API
ft:sourceType
Paligo

Description: Sets the Primary Key for the repository.

Since: 7.19

Security: Requires a valid admin user

Usage: POST /api/v2/repositories/<repo-name>/keyPairs/primary

Sample Usage:

curl -X POST -uadmin:password "http://localhost:8080/artifactory/api/v2/repositories/debian-local/keyPairs/primary" --data-binary 'key-name' --header 'Content-Type: text/plain'