0

I'm trying to get the information about the owners of a list of repositories in BitBucket using REST API calls.

I'm able to access the commit details of the repositories and listing out the users but I'm focused on retrieving the owner information.

https://host:port/rest/api/1.0/projects/project_name/repos/repo_name/commits/?until=master

Pralay Das
  • 1
  • 1
  • 3
  • What version of Bitbucket Server? – Jim Redmond May 25 '19 at 00:13
  • Bitbucket version 6.0 – Pralay Das May 31 '19 at 09:56
  • Can you specify what you mean with the owner of a repository? Repositories' ownership is either a user (for personal repositories) or a project. To find a specific user as "owner" for a project, you could traverse through the permissions of the repository or project to check who is Admin or the like. – TheFRedFox Jul 08 '19 at 15:21

1 Answers1

0

If you have their UUID then https://api.bitbucket.org/2.0/repositories/{owner}/{repo_slug} should include an "owner" object.