{ "opencollection": "1.0.0", "info": { "name": "Bitbucket Addon GPG API", "version": "2.0" }, "items": [ { "info": { "name": "GPG", "type": "folder" }, "items": [ { "info": { "name": "List GPG keys", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/users/:selected_user/gpg-keys", "params": [ { "name": "selected_user", "value": "", "type": "path", "description": "This can either be an Atlassian Account ID OR the UUID of the account,\nsurrounded by curly-braces, for example: `{account UUID}`.\n" } ] }, "docs": "Returns a paginated list of the user's GPG public keys.\nThe `key` and `subkeys` fields can also be requested from the endpoint.\nSee [Partial Responses](/cloud/bitbucket/rest/intro/#partial-response) for more details." }, { "info": { "name": "Add a new GPG key", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/users/:selected_user/gpg-keys", "params": [ { "name": "selected_user", "value": "", "type": "path", "description": "This can either be an Atlassian Account ID OR the UUID of the account,\nsurrounded by curly-braces, for example: `{account UUID}`.\n" } ] }, "docs": "Adds a new GPG public key to the specified user account and returns the resulting key.\n\nExample:\n\n```\n$ curl -X POST -H \"Content-Type: application/json\" -d\n'{\"key\": \"\"}'\nhttps://api.bitbucket.org/2.0/users/{d7dd0e2d-3994-4a50-a9ee-d260b6cefdab}/gpg-keys\n```" }, { "info": { "name": "Get a GPG key", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/users/:selected_user/gpg-keys/:fingerprint", "params": [ { "name": "fingerprint", "value": "", "type": "path", "description": "A GPG key fingerprint.\n" }, { "name": "selected_user", "value": "", "type": "path", "description": "This can either be an Atlassian Account ID OR the UUID of the account,\nsurrounded by curly-braces, for example: `{account UUID}`.\n" } ] }, "docs": "Returns a specific GPG public key belonging to a user.\nThe `key` and `subkeys` fields can also be requested from the endpoint.\nSee [Partial Responses](/cloud/bitbucket/rest/intro/#partial-response) for more details." }, { "info": { "name": "Delete a GPG key", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/users/:selected_user/gpg-keys/:fingerprint", "params": [ { "name": "fingerprint", "value": "", "type": "path", "description": "A GPG key fingerprint.\n" }, { "name": "selected_user", "value": "", "type": "path", "description": "This can either be an Atlassian Account ID OR the UUID of the account,\nsurrounded by curly-braces, for example: `{account UUID}`.\n" } ] }, "docs": "Deletes a specific GPG public key from a user's account." } ] } ], "bundled": true }