Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can I clone a repo by a unique identification number?

taspen April 9, 2019

We are using Conan for dependency management and have concerns about changing repository URLs.

 

Is it possible to use the repository identification number (ID) as part of the URL?

 

Thanks in advance

1 answer

0 votes
Tyler T
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 9, 2019

Yes, from the API docs:

UUID's work with both the 1.0 and 2.0 APIs for the user, team, and repository objects.

This helps you resolve repositories no matter if the username or team name changes.

You can replace the URL parts in your clone command with the UUIDs and it will resolve as expected.

Source: https://developer.atlassian.com/bitbucket/api/2/reference/meta/uri-uuid

taspen April 10, 2019

Hi again,

 

When running requests to the api I only receive an "id" not a "UUID"

 

I am running Bitbucket on a server.

taspen April 11, 2019

Hi again,

When running requests to the api I only receive an "id" not a "UUID"

I am running Bitbucket on a server.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events