Bitbucket (Preview)

Bitbucket (Preview)

Bitbucket is a web based hosting service for projects that use GIT revision control.

This connector is available in the following products and regions:

Service Class Regions
Logic Apps Standard All Logic Apps regions except the following:
     -   Azure Government regions
     -   Azure China regions
Flow Premium All Flow regions except the following:
     -   US Government (GCC)
PowerApps Premium All PowerApps regions except the following:
     -   US Government (GCC)

Throttling Limits

Name Calls Renewal Period
API calls per connection 100 60 seconds
Frequency of trigger polls 1 30 seconds

Actions

Approve pull request

This operation is used to approve an existing pull request.

Required Parameters

Account Name
string
Atlassian account or team name
Repository Id
string
Bitbucket repository
Pull Request Id
string
The Id of the pull request.

Returns

Create issue

This operation creates a new issue in the given repository.

Required Parameters

Account Name
string
Atlassian account or team name
Repository Id
string
Bitbucket repository
Issue Title
string
Issue Type
string
Priority
string
The priority category of the issue.

Optional Parameters

Description
string
Status
string
Component
string
Pre-defined component value.
Milestone
string
Pre-defined milestone value.
Version
string
Pre-defined version value.

Returns

Decline pull request

This operation is used to decline an existing pull request.

Required Parameters

Account Name
string
Atlassian account or team name
Repository Id
string
Bitbucket repository
Pull Request Id
string
The Id of the pull request.

Returns

Get issue by id

This operation retrieves all information about the given issue.

Required Parameters

Account Name
string
Atlassian account or team name
Repository Id
string
Bitbucket repository
Issue Id
string
The id of the issue.

Returns

Get user by Id

This operation returns all information about a given user by its id.

Required Parameters

User Id
string
The id of the user.

Returns

Merge pull request

This operation can merge a given pull request.

Required Parameters

Account Name
string
Atlassian account or team name
Repository Id
string
Bitbucket repository
Pull Request Id
string
The Id of the pull request.

Returns

Triggers

When a new commit is pushed

Triggers when a new commit is pushed to the given repository.

Required Parameters

Account Name
string
Atlassian account or team name
Repository Id
string
Bitbucket repository

Returns

When a new issue is added

Triggers when a new issue is added to the given repository.

Required Parameters

Account Name
string
Atlassian account or team name
Repository Id
string
Bitbucket repository

Returns

When a pull request is approved

Triggers when a pullreqest is approved in the specified repository.

Required Parameters

Account Name
string
Atlassian account or team name
Repository Id
string
Bitbucket repository

Returns

When a pull request is created

Triggers when a new pullreqest is created in the given repository.

Required Parameters

Account Name
string
Atlassian account or team name
Repository Id
string
Bitbucket repository

Returns

When a pull request is declined

Triggers when an existing pullreqest is declined in the given repository.

Required Parameters

Account Name
string
Atlassian account or team name
Repository Id
string
Bitbucket repository

Returns

When a pull request is merged

Triggers when an existing pullreqest is merged in the given repository.

Required Parameters

Account Name
string
Atlassian account or team name
Repository Id
string
Bitbucket repository

Returns

When a repository is added

Triggers when a new repository is created for the authenticated account.

Required Parameters

Account Name
string
Atlassian account or team name

Returns

When an issue is updated

Triggers when an issue is updated in the given repository.

Required Parameters

Account Name
string
Atlassian account or team name
Repository Id
string
Bitbucket repository

Returns

Definitions

WebhookIssueCreatedResponse

Actor
Actor
Repository
Repository
issue
Issue

WebhookIssueUpdatedResponse

Actor
Actor
Comment
Comment
Repository
Repository
changes
Changes
issue
Issue

WebhookPullRequestApprovedResponse

Actor
Actor
Approval
Approval
PR
PullRequest
Repository
Repository

WebhookPullRequestCreatedResponse

Actor
Actor
PR
PullRequest
Repository
Repository

WebhookPullRequestDeclinedResponse

Actor
Actor
PR
PullRequest
Repository
Repository

WebhookPullRequestMergedResponse

Actor
Actor
PR
PullRequest
Repository
Repository

WebhookRepositoryPushResponse

Actor
Actor
Push
Push
Repository
Repository

List_repositories_Response

Created Date-Time
date-time
yyyy-MM-ddTHH:mm:ss.fff(+hh:mm or -hh:mm)
Description
string
The repository's description.
Fork Policy
string
Allow forks, no public forks or no forks.
Has Issue Tracker
boolean
True if an issue tracker has been set for the repository.
Has Wiki
boolean
True if the repository has a wiki.
Is private
boolean
True if the repository is private.
Language
string
Programming language used in the repository.
Name
string
Repository's name.
Name
string
Display name of the repository's owner.
SCM
string
Source control manager for the repository.
Size
integer
Integer indicating size of the repository in bytes.
Slug
string
Slug used to identify the repository.
Type
string
Git or mercurial.
UUID
string
Repository's immutable id.
UUID
string
Unique identifier of the repository's owner.
Updated Date-Time
date-time
yyyy-MM-ddTHH:mm:ss.fff(+hh:mm or -hh:mm)
Username
string
Username of the repository's owner.
Website
string
Url of the website if defined.
values
array of object
values

ApprovePullRequestResponse

Is approved
boolean
True if the pull request is approved.
Name
string
The display name of the approver.
Role
string
The role of the pull request.
Type
string
The type of the pull request.
Type
string
User or team.
UUID
string
The universally unique identifier of the user.
Username
string
The username of the approver.

DeclineOrMergePullRequestResponse

Closed By Name
string
Name of person who closed the PR.
Closed By Username
string
Username of person who closed the PR.
Created Date-Time
date-time
yyyy-MM-ddTHH:mm:ss.fff(+hh:mm or -hh:mm)
Description
string
Pull request description.
Hash
string
The SHA1 of the destination branch head.
Hash
string
The SHA1 of the source branch head.
Id
integer
The Id of the pull request.
Name
string
The display name of the creator.
Name
string
The name of the source branch repository.
Name
string
Name of the source branch.
Name
string
The name of the destination branch repository.
Name
string
The name of the destination branch.
Reason
string
The reason the pull request is declined (if so).
Status
string
Pull request status.
Task Count
integer
Task count.
Title
string
Pull request title.
Type
string
The type of the destination branch repository.
Type
string
The type of the source branch repository.
Type
string
The type of the creator.
UUID
string
Unique identifier of person who closed the PR.
UUID
string
The UUID of the destination branch repository.
UUID
string
The UUID of the source branch repository.
UUID
string
The universally unique identifier of the creator.
Updated on
string
yyyy-MM-ddTHH:mm:ss.fff(+hh:mm or -hh:mm)
User Type
string
Closed by a user or team.
Username
string
The username of the creator

IssueResponse

Assignee
string
The assigned user of the issue.
Component
string
Pre-defined component value.
Created on
date-time
yyyy-MM-ddTHH:mm:ss.fff(+hh:mm or -hh:mm)
Display name
string
The display name of the reporter.
Issue Id
integer
The Id of the issue.
Kind
string
The kind of issue.
Milestone
string
Pre-defined milestone value.
Priority
string
The priority of the issue.
Status
string
The status of the issue.
Title
string
The title of the issue.
Type
string
The type of the reporter.
Type
string
The type of issue.
UUID
string
The Universally Unique Identifier of the reporter.
UUID
string
The Universally Unique Identifier of the repository.
Updated on
date-time
yyyy-MM-ddTHH:mm:ss.fff(+hh:mm or -hh:mm)
Username
string
The username of the reporter.
Version
string
A version value defined by the administrator.
Votes
integer
The number of votes on the issue.
Watches
integer
The number of watches on the issue.
full name
string
The full name of the repository.
html
string
The description html of the issue.
markup
string
The description markup of the issue.
name
string
The name of the repository.
text
string
The description of the issue.
type
string
The type of the repository.

UserResponse

Display Name
string
The display name of the user.
Type
string
The user type.
UUID
string
The universally unique identifier of the user.
Username
string
The username.

Actor

Name
string
Full display name of the author.
Type
string
User or team.
UUID
string
Unique identifier of the user or team.
Username
string
Username or team id.

Approval

UUID
string
The universally unique identifier of the approver.
date time
string
yyyy-MM-ddTHH:mm:ss.fff(+hh:mm or -hh:mm)
display name
string
The display name of the approver.
type
string
The type of the approver.
username
string
The username of the approver.

Changes

New Issue
string
New value for the issue field.
Old Issue
string
Old value for the issue field.

Comment

Description
string
Description of the comment.
Id
integer
Id of the comment added.
Parent Id
integer
Id of the parent comment.
Updated Date-Time
string
yyyy-MM-ddTHH:mm:ss.fff(+hh:mm or -hh:mm)
yyyy-MM-ddTHH:mm:ss.fff(+hh:mm or -hh:mm)
date-time
created_on

Issue

Component
string
User defined enumerator value.
Created Date-Time
date-time
yyyy-MM-ddTHH:mm:ss.fff(+hh:mm or -hh:mm)
Id
integer
Issue identifier.
Issue Content
string
Raw issue discription.
Issue Type
string
Bug, enhancement,proposal or task.
Kind
string
Issue kind as defined in the GUI.
Milestone
string
Stage the issue has reached.
Priority
string
Issue's priority category.
Status
string
Issue status.
Title
string
Issue title.
Updated Date-Time
date-time
yyyy-MM-ddTHH:mm:ss.fff(+hh:mm or -hh:mm)
Version
string
String containing a version value.

PullRequest

Closed Branch
boolean
Closes the source branch after merge.
Closed By
string
Username of person who closes the pull request.
Created Date-Time
date-time
yyyy-MM-ddTHH:mm:ss.fff(+hh:mm or -hh:mm)
Description
string
Description of the pull request.
Display Name
string
Display name of the participant
Hash
string
The SHA1 of the source branch head.
Id
integer
Id of the pull request.
Name
string
The name of the destination branch.
Name
string
Display name of the PR author.
Name
string
Name of the source branch.
Participant
array of object
Reason
string
Reason the pull request is declined (if so).
Repository Type
string
Type of the repo where issue is created.
Respository Name
string
Name of the repo where issue is created.
Reviewers
array of object
List of reviewers on the pull request.
Role
string
Role of the participant.
Status
string
The status of the pull request.
Title
string
The name of the pull request.
Type
string
User or team.
Type
string
The type of participant.
Type
string
The type of the source branch repository.
Type
string
User or team.
UUID
string
The universally unique identifier of the author.
UUID
string
The UUID of the source branch repository.
UUID
string
Repository's unique id.
Updated Date-Time
string
yyyy-MM-ddTHH:mm:ss.fff(+hh:mm or -hh:mm)
Username
string
Participant's username.
Username
string
Username of the PR author.
name
string
The name of the source branch repository.
uuid
string
The universally unique identifier of the user.

Push

changes
array of object
changes
closed
boolean
Indicate whether the reference is old.
commits
array of object
commits
created
boolean
Indicate whether the reference is new.
date
date-time
date
date
date-time
date
date
date-time
date
forced
boolean
Indicate whether the push was forced.
hash
string
hash
hash
string
hash
hash
string
hash
hash
string
hash
hash
string
hash
hash
string
hash
href
string
href
href
string
href
href
string
href
href
string
href
href
string
href
href
string
href
href
string
href
href
string
href
href
string
href
href
string
href
href
string
href
href
string
href
href
string
href
href
string
href
href
string
href
href
string
href
message
string
message
message
string
message
message
string
message
name
string
name
name
string
name
parents
array of object
parents
parents
array of object
parents
parents
array of object
parents
raw
string
raw
raw
string
raw
raw
string
raw
truncated
boolean
Indicate whether Bitbucket truncated the commits array in this payload.
type
string
type
type
string
type
type
string
type
type
string
type
type
string
type
type
string
type
type
string
type
type
string
type

Repository

SCM
string
The source control manager of the repository.
UUID
string
The universally unique identifier of the owner.
UUID
string
The universally unique identifier of the repository.
display name
string
The display name of the owner.
full name
string
The full name of the repository.
is private
boolean
A boolean indicating if the repository is private.
name
string
The name of the repository.
type
string
The type of owner.
type
string
The type of the repository.
username
string
The username of the owner.
website
string
The website of the repository.