repos

Set the active GPG key for the Repository.

Set the active GPG key for the Repository.

post/repos/{owner}/{identifier}/gpg/

Request

  • Base URL
    https://api.cloudsmith.io
  • Auth
    • API key in header X-Api-Key
    • or HTTP basic

Request body

gpg_passphrasestring

The GPG passphrase used for signing.

gpg_private_keystring required

The GPG private key.

Response

The provided GPG key is the same as the current GPG key.

activeboolean

If selected this is the active key for this repository.

commentstring required
created_atstring date-time
defaultboolean

If selected this is the default key for this repository.

fingerprintstring

The long identifier used by GPG for this key.

fingerprint_shortstring
public_keystring

The public key given to repository users.

Changes

No recorded changes to this operation across all 6 revisions of this API.