Add a GPG key for a user
POST
/api/v4/users/{id}/gpg_keys
Adds a GPG key for a specified user account. Administrators only.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
integer
The ID of the user
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
key
required
The new GPG key
string
Examplegenerated
{ "key": "example"}Responses
Section titled “Responses”Created
Media typeapplication/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
Not Found