Skip to content

Add a GPG key

POST
/api/v4/user/gpg_keys

Adds a GPG key for the currently authenticated user.

Media type application/json
object
key
required

The new GPG key

string
nullable
Example generated
{
"key": "example"
}

Created

Media type application/json
object
id
integer format: int64
key
string
created_at
string format: date-time
Example
{
"id": 1,
"key": "-----BEGIN PGP PUBLIC KEY BLOCK-----",
"created_at": "2017-09-05T09:17:46.264Z"
}

Bad Request