v2
Swagger 2.02026-08-01331211921.0 KBGPG
Add a new GPG key
Adds a new GPG public key to the specified user account and returns the resulting key.
Example:
$ curl -X POST -H "Content-Type: application/json" -d
'{"key": "<insert GPG Key>"}'
https://api.bitbucket.org/2.0/users/{d7dd0e2d-3994-4a50-a9ee-d260b6cefdab}/gpg-keys
post/users/{selected_user}/gpg-keys
Request body
Response
The newly created GPG key.