Gpg

Repos Gpg Create

Set the active GPG key for the Repository.

Request

posthttps://api.cloudsmith.io/v1/repos/{owner}/{identifier}/gpg
Body params optional

Response body

object

object

gpg_passphrase
string
optional
length ≥ 1
gpg_private_key
string
required
length ≥ 1

Response

Responses

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

object

object

active
boolean
optional
comment
string
required
length ≥ 1
created_at
date-time
optional
default
boolean
optional
fingerprint
string
optional
length ≥ 1
fingerprint_short
string
optional
public_key
string
optional
length ≥ 1

The provided GPG key was assigned to the Repository.

object

object

active
boolean
optional
comment
string
required
length ≥ 1
created_at
date-time
optional
default
boolean
optional
fingerprint
string
optional
length ≥ 1
fingerprint_short
string
optional
public_key
string
optional
length ≥ 1

The provided GPG key is not valid

object

object

detail
string
required
length ≥ 1
fields
object
optional

Custom GPG keys are not active; upgrade your account!

object

object

detail
string
required
length ≥ 1
fields
object
optional

Organization/Repository does not exist, or you do not have permissions.

object

object

detail
string
required
length ≥ 1
fields
object
optional

Missing or invalid parameters (see detail).

object

object

detail
string
required
length ≥ 1
fields
object
optional