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

bitbucket api PostRepositoryHook is not invoked on pull request merged

I am using PostRepositoryHook to develop plugin to listen for all the pushes made by developer. During testing I realized that it does work when I test it using command line to run git push command. However it doesn't work when I do PR and merge my…
joy
  • 3,669
  • 7
  • 38
  • 73
0
votes
1 answer

admin bitbucket post hooks plugin for all repositories

I am admin of bitbucket. My team is working to create a company wide automated audit for all the repositories in bitbucket and run some validations on commit or push. To initiate this audit, we want to develop an admin plugin which should keep…
joy
  • 3,669
  • 7
  • 38
  • 73
0
votes
1 answer

Exclude deleted comment from bitbucket query result

I want to filter out deleted comment from a bitbucket cloud's pull request. I tried the comment API endpoint:…
Tuan Nguyen
  • 89
  • 1
  • 6
0
votes
1 answer

php curl get redirected url after get request

I am using the bitbucket api and there I am getting an access token when I enter the following url: 'https://bitbucket.org/site/oauth2/authorize?client_id={client_id}&response_type=code' and it redirects me to…
Angel Miladinov
  • 1,596
  • 4
  • 20
  • 43
0
votes
1 answer

Creating a Bitbucket-Repository in Java via REST

I am trying to create a Bitbucket repository using their REST-API. Everything seems to work except setting the "parent" project, where the repository needs to be created in. On this link a cURL example is provided. In the body, the parameter "scm"…
ZeaX
  • 1
  • 3
0
votes
2 answers

How can I filter by a numeric field using jq?

I am writing a script to query the Bitbucket API and delete SNAPSHOT artifacts that have never been downloaded. This script is failing because it gets ALL snapshot artifacts, the select for the number of downloads does not appear to be working. What…
Freiheit
  • 8,408
  • 6
  • 59
  • 101
0
votes
1 answer

Using Curl in PHP for bitbucket APIs

I'm trying to learn curl in PHP, I tried implementing bitbucket API which has following syntax for authentication: $ curl -X POST -u "client_id:secret" \ https://bitbucket.org/site/oauth2/access_token -d grant_type=password \ -d…
Nitish Kumar
  • 6,054
  • 21
  • 82
  • 148
0
votes
1 answer

Can't link new repositories to projects using Bitbucket's API

I'm building a shell application that allows my teammates to start new projects by running a few commands. It should be able to create a new project and a new repository inside that project. Although I'm specifying the project key/uuid when creating…
Vig
  • 342
  • 1
  • 7
0
votes
1 answer

How to automate creation of Tags on BitBucket from Jenkins using WebHooks?

Is there any way to to support automatic tag creation on Bitbucket via Jenkins pipeline? I know how to build a branch a Tag is created or a push is done to the repo.
0
votes
1 answer

powershell: bitbucket api post request returns 400 error

I'm using powershell to work with Bitbucket API. Powershell sends command to check, if pull request could be merged and then merges it. First command works without any problems: Invoke-WebRequest -Headers @{Authorization = "Basic $base64AuthInfo"}…
Dziki_Jam
  • 170
  • 2
  • 10
0
votes
1 answer

How to retrieve the list of repos using a particular plugin using Bitbucket API?

I want to retrieve the list of repos inside a Bitbucket project that are using a particular plugin. I have gone through the REST API documentation for Bitbucket but I can't seem to find a way to do it. Using this, I can get the plugin information…
ANIL
  • 2,542
  • 4
  • 25
  • 44
0
votes
1 answer

Comment likes API available for Bitbucket hosted on premises

I wonder if we should be able to access this comment likes api if our Bitbucket is a server hosted on premises? https://developer.atlassian.com/static/rest/bitbucket-server/4.8.1/bitbucket-comment-likes-rest.html#idm34960 I can't find this api from…
ey dee ey em
  • 7,991
  • 14
  • 65
  • 121
0
votes
1 answer

Create a repository with Bitbucket 2.0 api and node.js

I am trying to create a repository from a command line app that I am writing. I am using node.js to send a post request to the Bitbucket 2.0 api but even though I am successful in creating the repo, it doesn't seem to honour the settings I create…
5k313t0r
  • 51
  • 1
  • 1
  • 8
0
votes
2 answers

Bitbucket Server Api: Clone all repositories

I want to clone all repositories in my Bitbucket Server in order to have backups. I trying to use Bitbucket rest api but not getting the required list of all repositories. $ curl -u username:password …
user1878934
0
votes
1 answer

Can't get POST to work with Powershell and Bitbucket

I'm trying to POST a file to the 'Downloads' section of a Bitbucket repository. I'm following this page from Bitbucket's documentation. I'm trying to do this by writing a Powershell script. I've managed to get the GET method to work…
Roka545
  • 3,404
  • 20
  • 62
  • 106