Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,459,792
Community Members
 
Community Events
176
Community Groups

Unable to pull repos list using GET method

Edited

Hi Team,

We're trying to pull repos list with cloud API and not able to get it.

https://api.bitbucket.org/2.0/repositories/workspaceID

Screenshot 2022-04-10 122625.png

1 answer

1 accepted

1 vote
Answer accepted
Karthick S Atlassian Team Apr 10, 2022

Hello @puru kovvuri

Thank you for reaching out to Atlassian Community!

Could you please ensure the App password created has the necessary permissions? It also expects the username, not the email ID. 

Reference: https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/ 

Alternatively, you may try using CURL and see if the issue persists?

curl -X GET -u username:AppPassword "https://api.bitbucket.org/2.0/repositories/{workspace-id}"

 I hope this helps.

Kind regards,

Karthick S

 @Karthick S

Excellent, it has worked. Thank you so much !!

Is there a way to get last code committed user details and timestamp?

Like Karthick S likes this
Karthick S Atlassian Team Apr 10, 2022

Hello @puru kovvuri

Glad to know it helped! You may use this API which would return commits for the specific repository. I have provided a sample CURL query that returns the results based on the recent update. The first response is the last code committed. 

curl -X GET -u username:AppPassword "https://api.bitbucket.org/2.0/repositories/workspace_id/repo_slug/commits?sort=updated_on"

I hope this helps.

Kind regards,

Karthick S

Like puru kovvuri likes this
Like Karthick S likes this

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events