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
2
votes
1 answer

BitBucket Rest API OAuth2: How to use Client Credentials Grant

I am trying to use bullet 4 ( Client Credentials Grant ) in order to obtain an access/bearer token authentication documentation Example: curl -X POST -u "client_id:secret" \ https://bitbucket.org/site/oauth2/access_token \ -d…
2
votes
2 answers

Merging bitbucket pull request via API

According to Bitbucket API documentation, I should be able to merge a pull request with POST to this url: https://bitbucket.example.com/rest/api/1.0/projects/{projectkey}/repos/{repositoryslug}/pull-requests/{pullrequestid}/merge?version Yet,…
Aleks G
  • 56,435
  • 29
  • 168
  • 265
2
votes
2 answers

Bitbucket Server: REST API returns only public, not private repos

One of my customers is running an instance of Atlassian Bitbucket Server v5.14.0 (not Bitbucket Cloud!) in their intranet. I try to tap into the REST API to get a list of projects and for the one I'm working on, get a list of git repositories: #…
ssc
  • 9,528
  • 10
  • 64
  • 94
2
votes
1 answer

Cleanly get rid of the broken commit and all the other commits that follow

I have the following list of commits: a->b->c->d->e->f where letters would represent the sha hash. If commit c breaks the build I want new structure to look like this a->b where everything else on the branch would be deleted. I am working in a…
Dzerlig
  • 247
  • 2
  • 10
2
votes
0 answers

Merge Master Branch (HotFixes) into Feature Branch via REST API Bitbucket

we need to merge the master code (hotfixes commits) into feature branch via bitbucket REST API. There is an option of sync on Bitbucket cloud but via can't find any rest API for it. Whereas the same thing it possible in GitHub check here.
Atit
  • 125
  • 2
  • 10
2
votes
3 answers

How to get bitbucket's refresh_token?

I am using the below API https://bitbucket.org/site/oauth2/authorize?client_id={client_id}&response_type=token to get access_token but access_token is expired in 1 hour and I need refresh_token but I am not able to get refresh_token in the above…
2
votes
1 answer

Bitbucket Pull Request from Command Line using SSH Access Keys

Earlier I had asked a question about how to raise a pull request from command line and with help I came up with this code to get it done: curl -k -X POST -H "Content-Type: application/json" --user username:password -d…
ishallwin
  • 300
  • 2
  • 17
2
votes
0 answers

500 Internal Server Error Updating Bitbucket Variables Via API

I'm working with bitbucket pipelines to build and upload docker images automatically. We use AWS for our docker repo and they change their login credentials every 12 hours, so we need to retrieve and update the environment variables being used by…
2
votes
2 answers

Bitbucket dependencies not being downloaded in maven project

I am trying to write a BitBucket pull request listener. But the jars related to it is not getting downloaded when I try to create a maven project.