how to know if I can contribute to a branch with Azure rest Api?

Titouan FERDOEL 0 Reputation points
2024-07-09T14:28:57.25+00:00

Bonjour, avec l'api rest azure devops mise en place par Microsoft, je souhaite savoir si j'ai le droit de contribuer à une branche spécifique, j'ai donc la requête suivante :

GET https://dev.azure.com/{organization}/_apis/permissions/2e9eb7ed-3c0a-47d4-87c1-0ffdd275fd87/4?tokens=repoV2/{idProjet}/{idDépot}/refs/heads/{Branche}&api-version=7.0

j'ai accès au droits sur le dépôt, mais la partie apres "refs/heads/branche" n'est pas prise en compte, je peux mettre ce que je veux le résultat est le même, dans la documentation, je n'ai trouvé aucun exemple de ce à quoi doit ressembler un token, j'aimerais donc être guidé.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,098 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. VarunTha 8,220 Reputation points Microsoft Vendor
    2024-07-09T15:48:36.5033333+00:00

    Hi Titouan FERDOEL,
    Thanks for the question and using MS Q&A platform.

    Azure DevOps is currently not supported in the Microsoft Q&A platform; the supported products are listed over here https://docs.microsoft.com/en-us/answers/products (more to be added later on).

    In order to assist best on your query, I would request you to post your query in SO => Azure Devops dedicated support. Additionally, adding the [Azure] tag on SO will increase visibility as it is a Microsoft Sponsored tag.

    https://stackoverflow.com/questions/tagged/azure-devops

    OR

    Report any Azure Devops problems on Developer Community.

    This will assist you with a faster reply to your query.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.