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
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
Excellent, it has worked. Thank you so much !!
Is there a way to get last code committed user details and timestamp?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.