Hello,
This is a followup to this question regarding endpoint deprecation in CHANGE-2770.
I see that two new API endpoints have been released, but there doesn't seem to be a replacement for the GET /repositories endpoint.
I understand that support for cross-workspace APIs has ended, but I'm wondering if there's an API endpoint that can tell me which repositories a user is a collaborator on (i.e., they have direct access to the repository but not the workspace itself)? Or is being a collaborator not something that's going to be supported going forward?
Previously, the repositories endpoint helped us make this distinction. We need this information to determine which workspaces contain repositories the user collaborates on.
Additionally, I wanted to confirm that there are no plans to release an endpoint that will allow a user to list all repositories they have access to across workspaces?
Thank you.
I raised your questions with our engineering teams and I was informed that you've had a conversation with them directly regarding these queries.
For other community users who are curious about the concerns above - I will share the response from our engineering team below:
GET /2.0/repositories API. Changes to our architecture is what necessitated the deprecation of cross-workspace APIs in the first place, and we cannot support them going forward. The only "cross-workspace" endpoint we can support going forward is the new /2.0/user/workspaces GET /2.0/user/permissions/repositories , that specifically shows the requesting user's permission level on repositories. Unfortunately as of now, the current workaround (ie, using the role filter with /2.0/repositories) is the best we can provide. Cheers!
- Ben (Bitbucket Cloud Support)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.