Triggers
Build status updated
Triggered when build status is updated.
Comment created
Triggered when a user comments on an issue associated with a repository.
Commit comment created
Triggered when a user comments on a commit in a repository.
Commit status
A build system, CI tool, or another vendor recognizes that a user recently pushed a commit and updates the commit with its status
Commit status created
Issue created
Triggered when a user creates an issue for a repository.
Issue updated
Triggered when a user updated an issue for a repository.
PR Change Request removed
Triggered when a user removes a change request from a pull request for a repository.
PR Changes request created
Triggered when a user requests a change for a pull request for a repository.
Pull request approval removed
Triggered when a user removes an approval from a pull request for a repository.
Pull request approved
Triggered when a user approves a pull request for a repository.
Pull request closed
Pull request comment created
Triggered when a user comments on a pull request.
Pull request comment deleted
Triggered when a user deletes a comment on a pull request.
Pull request comment reopened
Triggered when a user reopens a comment on a pull request.
Pull request comment resolved
Triggered when a user resolves a comment on a pull request.
Pull request comment updated
Triggered when a user updates a comment on a pull request. If a user updates the same comment with not much time in between, Bitbucket only sends the event request the first time the comment is updated. However, if some time passes and that user updates the comment again, Bitbucket sends the event request a second time.
Pull request created
Triggered when a user creates a pull request for a repository.
Pull request declined
Triggered when a user declines a pull request for a repository.
Pull request merged
Triggered when a user merges a pull request for a repository.
Pull request updated
Triggered when a user updates a pull request for a repository.
Repository push
Triggered when a user pushes 1 or more commits to a repository.
Repository update
Triggered when a user updates the Name, Description, Website, or Language fields under the Repository details page of the repository settings.
Actions
Approve a pull request
Approve the specified pull request as the authenticated user.
Create a branch
Creates a new branch in the specified repository.
Create a comment on a pull request
Creates a new pull request comment. Returns the newly created pull request comment.
Create a pull request
Creates a new pull request where the destination repository is this repository and the author is the authenticated user.
Create a tag
Creates a new tag in the specified repository.
Create a webhook for a repository
Creates a new webhook on the specified repository.
Decline a pull request
Declines the pull request.
Delete a branch
Delete a branch in the specified repository.
Delete a tag
Delete a tag in the specified repository. The tag name should not include any prefixes (e.g. refs/tags).
Get a branch
Returns a branch object within the specified repository.
Get a pipeline
Retrieve a specified pipeline
Get a pull request
Returns the specified pull request.
Get a repository
Returns the object describing this repository.
Get a tag
Returns the specified tag.
Get a workspace
Returns the requested workspace.
Get file or directory contents
This endpoints is used to retrieve the contents of a single file, or the contents of a directory at a specified revision.
Get input parameters of a pipeline
Returns input parameters of a pipeline
Get user membership for a workspace
Returns the workspace membership, which includes a `User` object for the member and a `Workspace` object for the requested workspace.
List a repository permissions for a workspace
Returns an object for the repository permission of each user in the requested repository. Permissions returned are effective permissions: the highest level of permission the user has. This does not distinguish between direct and indirect (group) privileges. Only users with admin permission for the repository may access this resource. Permissions can be: * `admin` * `write` * `read`
List all repository permissions for a workspace repositories
Returns an object for each repository permission for all of a workspace's repositories. Permissions returned are effective permissions: the highest level of permission the user has. This does not distinguish between direct and indirect (group) privileges. Only users with admin permission for the team may access this resource.
List branches and tags refs
Returns the branches and tags in the repository.
List comments on a pull request
Returns a paginated list of the pull request's comments.
List commits on a pull request
Returns a paginated list of the pull request's commits. These are the commits that are being merged into the destination branch when the pull requests gets accepted.
List open branches
Returns a list of all open branches within the specified repository.
List pipelines
Find pipelines
List projects in a workspace
Returns the list of projects in this workspace.
List public repositories
Returns a paginated list of all public repositories.
List pull requests
Returns all pull requests on the specified repository. By default only open pull requests are returned. This can be controlled using the `state` query parameter. To retrieve pull requests that are in one of multiple states, repeat the `state` parameter for each individual state.
List repositories in a workspace
Returns a paginated list of all repositories owned by the specified workspace.
List tags
Returns the tags in the repository.
List users in a workspace
Returns all members of the requested workspace.
List webhooks for a repository
Returns a paginated list of webhooks installed on this repository.
List workspaces for user
Returns a list of workspaces accessible by the authenticated user.
Merge a pull request
Merges the pull request.
Resolve a comment thread
Resolve a comment thread
Run a pipeline
Initiate a pipeline. There are a couple of different options to initiate a pipeline, where the payload of the request will determine which type of pipeline will be instantiated.
Unapprove a pull request
Redact the authenticated user's approval of the specified pull request.