# Renew Azure DevOps token via WebAPI

**URL:** <https://community.sonarsource.com/t/renew-azure-devops-token-via-webapi/81066>\
**Category:** SonarQube Server / Community Build\
**Tags:** tokens, azuredevops-services\
**Created:** [January 12, 2023, 9:37am UTC](https://community.sonarsource.com/t/renew-azure-devops-token-via-webapi/81066 "2023-01-12T09:37:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tohebmt](https://avatars.discourse-cdn.com/v4/letter/t/3be4f8/32.png) [@tohebmt](https://community.sonarsource.com/u/tohebmt)\
**Post date:** [January 12, 2023, 9:37am UTC](https://community.sonarsource.com/t/renew-azure-devops-token-via-webapi/81066/1 "2023-01-12T09:37:54Z")

</div>

We want to automatically renew the Azure DevOps personal access token which SonarQube uses to connect to our Azure DevOps organization via the SoarQube Web API. There’ll be a DevOps Pipeline that renews the DevOps PAT.

I found endpoint [SonarQube](https://next.sonarqube.com/sonarqube/web_api/api/alm_integrations/set_pat) but don’t know how to parameterize it.

Version ist Developer Edition 9.6.1 (build 59531)

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [January 13, 2023, 10:35am UTC](https://community.sonarsource.com/t/renew-azure-devops-token-via-webapi/81066/2 "2023-01-13T10:35:50Z")

</div>

Hey there.

You might find this guide useful for understanding what values to use for the parameters.

> [@How to reverse engineer the Sonar Web API](https://community.sonarsource.com/t/how-to-reverse-engineer-the-sonar-web-api/66810):
>
> Every action that is taken in the SonarQube / SonarCloud UI is driven by the Web API. There is nothing you can do in SonarQube / SonarCloud that you cannot do using the Web API. warning We put a great deal of effort into the UI and UX of our products and sincerely think that most actions should be completed there. Especially when it comes to viewing analysis results, the UI is the best place to view up-to-date information with the right context. We think it is much better that you give access…
