The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I've been trying to get all the repository details that I can access. Some repositories are forked. Some are under different projects but shared with me and has admin access. Still, I'm only getting the repositories that are owned by me.
I'm using REST API 2.0 from this documentation: https://developer.atlassian.com/cloud/bitbucket/rest/intro/
The API endpoints I've tried are:
GET /2.0/repositories
GET /2.0/repositories/{workspace}
GET /2.0/workspaces/{workspace}/projects/{project_key}
GET /2.0/user/permissions/workspaces
Hi @Jayashankar V R,
You can get all the workspaces your account has access to with the following endpoint:
GET /2.0/workspaces/
If you have access to repositories in e.g. 4 workspaces, that call should return these 4 workspaces.
Then, for each of these 4 workspaces, you can use
GET /2.0/repositories/{workspace}
where {workspace} replace with the workspace-id or the UUID for each of the 4 workspaces (the UUID should be enclosed in curly brackets).
Is this something that works for you?
If you're still having issues, could you please let me know:
Kind regards,
Theodora
Thank you @Theodora Boudale
It worked like a charm. The issue was, I was trying to get the workspace using its UUID and I only took the UUID part after excluding the curly brackets. Now it works fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's good to hear @Jayashankar V R, thank you for the update!
I edited my previous response to add that the UUID should be in curly brackets, as you correctly noticed.
Please feel free to reach out if you ever need anything else!
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.