GPG
Add a new GPG key
Changed onAdds 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
- Base URLhttps://api.bitbucket.org/2.0
- URLhttps://api.bitbucket.org/2.0/users/{selected_user}/gpg-keys
- Auth
- OAuth 2Authorization code: https://bitbucket.org/site/oauth2/authorizeToken URL: https://bitbucket.org/site/oauth2/access_token scopes: account:write
- or HTTP basic
- or API key in header Authorization
Request body
Response
The newly created GPG key.
Changes
- info
endpoint added
- info