v2
latestOpenAPI 3.0.02026-08-013312111.4 MBGPG
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.