How to commit file to Bitbucket using API?

Hi all,

I want to use Bitbucket API to commit files to online repo.

what s the way i need to follow?

where can i get info or examples?

are there any PHP libraries available?

4 answers

This widget could not be displayed.
Jason Worley Atlassian Team Jan 01, 2014

The best I can offer is the following link as a resource but it sounds link it won't suffice your needs:

The commit and commits resources allow you to retrieve and compare information about commits. You can use the commit resource to get data about a single commit. A commit is an immutable resource; you can't create or update a commit with this API.

https://confluence.atlassian.com/display/BITBUCKET/commits+or+commit+Resource

This widget could not be displayed.

At the moment, a commits API does exist, but is internal until we can make it consistent with the 2.0 API. You can discover how it works by watching the requests using our online editor. Some time in the future we will work to bring this to the 2.0 API.

This widget could not be displayed.

Note that I share this problem, and have created an FR (BBS-7225) for this. Your support for a fix is appreciated!

This widget could not be displayed.

@Marcus Bertrand [Atlassian]: "discover how [the upcoming read/write commits API] works by watching the requests using our online editor."

I'll try that.

"Some time in the future we will work to bring this to the 2.0 API."

Is there a ticket for this, or other means by which interested users could vote up/down?

I've reopened https://bitbucket.org/site/master/issue/8672/is-there-any-api-to-make-a-commitand added a comment stating the same as here. Please us the 'vote' feature to help raise the issue's priority.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 10, 2018 in Bitbucket

What is your #1 piece of advice to new users getting started using Bitbucket?

Hello Community! My name is Claire Maynard, and I’m a Product Marketing Manager on the Bitbucket team. I’m interested in hearing what advice or tips you have for new users getting started on ...

246 views 14 2
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you