Github API - Test Config

POST /user/gpg_keys
users

Adds a GPG key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least write:gpg_key scope.
Create a GPG key for the authenticated user

Returns
201 application/json gpg-key

gpg-key [object]

A unique encryption key

Attributes
can_certify boolean

can_encrypt_comms boolean

can_encrypt_storage boolean

can_sign boolean

created_at string

emails 2005 []

expires_at string

id integer

key_id string

name string

primary_key_id integer

public_key string

raw_key string

revoked boolean

subkeys 2006 []

API:
Github Open API
(version: 1.1.4)
304 not_modified

not_modified [scalar]

Not modified

API:
Github Open API
(version: 1.1.4)
401 requires_authentication

requires_authentication [scalar]

Requires authentication

API:
Github Open API
(version: 1.1.4)
403 forbidden

forbidden [scalar]

Forbidden

API:
Github Open API
(version: 1.1.4)
404 not_found

not_found [scalar]

Resource not found

API:
Github Open API
(version: 1.1.4)
422 validation_failed

validation_failed [scalar]

Validation failed, or the endpoint has been spammed.

API:
Github Open API
(version: 1.1.4)
API:
Github Open API
(version: 1.1.4)