Set Secondary Key

JFrog REST APIs

Content Type
REST API

Description: Sets the secondary key for the repository that will be used as a backup key, in case the primary key has been removed.

Since: 7.19

Security: Requires a valid admin user

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

Sample Usage:

curl -X POST -uadmin:password "https://[JFrogPlatformURL]/artifactory/api/v2/repositories/debian-local/keyPairs/secondary" --data-binary 'key-name' --header 'Content-Type: text/plain'