It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Trigger Pipeline with API Edited

I've tried a number of different ways to trigger a pipeline through the API following what is specified here:


I've tried the following url's in an attempt to access the pipelines:

 - with oAuth, APP password, bitbucket login credentials

 - with oAuth, APP password, bitbucket login credentials

"type": "error",
"error": {
"message": "Resource not found",
"detail": "There is no API hosted at this URL.\n\nFor information about our API's, please refer to the documentation at:"

I can get a response when GET ing the main repo endpoint. In this response there is no reference to pipelines endpoint. oAuth and APP passwords all set with full access. oAuth token request responds with:

"scopes": "account:write repository:admin project wiki pipeline:variable team:write repository:delete pullrequest:write issue:write webhook snippet:write",

Any help is appreciated.  

1 answer

1 accepted

I'm not totally sure what the issue was but I believe it may have been a case issue in the URL. The repo name in question had some caps in it. When I tried to access using the same case in the URL it definitely does not work. Must use lower case. Probably obvious but this may help someone else out. Interesting to note using mixed case for a repo name on the repositories endpoint works but not for pipelines.

to trigger my pipeline:

curl -X POST -is -u myusername:APPpassword \
-H 'Content-Type: application/json' \ \
-d '
"target": {
"ref_type": "branch",
"type": "pipeline_ref_target",
"ref_name": "environments/staging"

App passwords can be generated here:

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Atlassian supported Jenkins integration for Bitbucket Server

We’ve been building a plugin to integrate Bitbucket Server and Jenkins CI, and I’m excited to announce that our alpha is ready to download and install. It lets you seamlessly configure a Jenkins job ...

453 views 0 10
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you