Questions tagged [bitbucket-api]

The Bitbucket REST API allows third-party application developers the means for writing applications for the Bitbucket service.

The Bitbucket REST API allows third-party application developers the means for writing applications that integrate with the Bitbucket service. The API includes ways to manage the repository changesets, issues on the issue tracker, permissions etc.

See also

430 questions
7
votes
1 answer

Is there a Bitbucket Cloud API to add member to team?

Github has this API : Add or update organization membership (given authenticated user is an organization owner) Does Bitbucket APIs have an equivalent of this for theirs teams (equivalent of organizations in Github)? In the docs I can see only a…
Nullpoet
  • 10,949
  • 20
  • 48
  • 65
7
votes
1 answer

Bitbucket API 2 - create repository in a team project

I have a team on my bitbucket account, myteam, which contains a project named mainproject. Whenever I want to create a repository inside I only need to execute this command line: $ curl -X POST -v -u myaccount:passwd…
kaligne
  • 3,098
  • 9
  • 34
  • 60
7
votes
7 answers

Is it possible to edit file and commit github/bitbucket from browser

I want to use editor in browser and save in github without server. Just like text editor in github/bitbucket could new file and save it I want to know are there any REST api of this 2 services to easily commit file like that Or a git library in js…
Thaina Yu
  • 1,372
  • 2
  • 16
  • 27
7
votes
1 answer

Request OAuth token from BitBucket

I've been trying to integrate BitBucket to my application for the past 4 hours to no avail. While reading through BitBucket's RESTful API documentation, I noticed that you need to use OAuth — it's OK, I'm using J.R Conlin's OAuthSimple library,…
AeroCross
  • 3,969
  • 3
  • 23
  • 30
6
votes
0 answers

How to open a pull request against an upstream repo using BitBucket Api?

Let's say I have a workspace and repo called acme/widget, and I have a fork of that called brianc/widget. Using the BitBucket api, how can I create a pull request from my repo to the upstream? In the docs there doesn't seem to be a way to do this…
brianc
  • 1,547
  • 3
  • 16
  • 30
6
votes
1 answer

Is there is a way to get Commits by datetime In bitbucket?

Is it possible to get commits on Bitbucket by datetime filter using their REST API v1.0 ? I read the entire documentation of the Bitbucket API, but I couldn't find anything related. I'm asking perhaps I did miss something. Thank you! API I am using…
swx
  • 138
  • 12
6
votes
1 answer

Bitbucket API - payload for "push" event - how to most reliably get latest hash

It looks like to get the latest hash of a change it's something like: const hash = body.push.changes[0].new.target.hash; That seems a little awkward though, given the array access - will it always be the first element? Here are the docs I am…
user5047085
6
votes
2 answers

How to delete a branch using Bitbucket REST API

Using postman, I have succeeded in creating branches in bitbucket via their REST API and using the guide below Bitbucket Rest API Guide But I cannot delete a branch using the same guide as well. I have created a JSON and placed it in the body tab of…
Cante Ibanez
  • 291
  • 1
  • 3
  • 12
6
votes
0 answers

Filter bitbucket pull requests based on start and end date

I am fetching pull requests for a particular repository using Bitbucket REST API version 2.0. https://developer.atlassian.com/bitbucket/api/2/reference/search?q=tag:pullrequests Below REST API works and list all the pull…
Vishal Nagpure
  • 266
  • 4
  • 12
6
votes
1 answer

Is there a way to find out email address of users in my team

I want to find out email addresses of users in my team, I can get their usernames but unable to get the email addresses. I have admin rights on all my teams. I have tried the below URL but I get 403 Forbidden…
Gaurav
  • 549
  • 1
  • 5
  • 13
6
votes
2 answers

How to access Bitbucket API from a Java Desktop App via Jersey+Oltu?

As the title states it, I want to access the bitbucket API from a native Java Desktop Application. Bitbucket requires Applications to use OAuth2, and for that I found that Oltu should do the job. However, my knowledge of OAuth is very limited and so…
grackkle
  • 776
  • 1
  • 9
  • 26
6
votes
1 answer

How to get the identity of the connected user via the Bitbucket REST API?

in the Stash REST API, after having retrieved an OAuth token, I'd like to get the identity of the connected user (username, email, ...). But I can't find a resource in the doc that let me do it without knowing the username at least. Is there a way…
Pascal Paulis
  • 277
  • 4
  • 17
6
votes
1 answer

How to make Bitbucket API calls with access token?

I created an ASP.NET MVC application which can authorize the user at Bitbucket. I used CSharp.Bitbucket library to get the token secret and token value. The OAuth tutorial said that with the token I can make API calls. I know that I can call the…
Gábor Domonkos
  • 1,081
  • 1
  • 17
  • 33
6
votes
2 answers

Is there a way to find out bitbucket team repositories names using git?

I have a bitbucket team which has several repositories but I forgot the user password to login. I have the user password credentials for team through which I can access and clone the repo. Is there a way to find out the names or link to repositories…
Anuj
  • 1,160
  • 2
  • 20
  • 40
5
votes
0 answers

Bitbucket endpoint for all Pull Requests assigned to a user?

Using the Bitbucket REST API, I’m looking for a way to get all pull requests that are assigned to a user. So far this endpoint: https://api.bitbucket.org/2.0/repositories/{workspace}/{repository_name}/pullrequests/{pullrequest_id}?fields=reviewers…
1
2
3
28 29