Forum Discussion

PraveenGujja's avatar
PraveenGujja
Copper Contributor
Sep 10, 2023

az devops cli for update service connection type:incommingwebhook

Hello Team, 

 

I was trying to find the solution to update secret using az cli in incoming webhook. 

1 Reply

  • Try REST API instead of CLI:

     

    • Get the service connection using

    GET https://dev.azure.com/{org}/{project}/_apis/serviceendpoint/endpoints/{id}?api-version=

    • Modify the authorization.parameters field (e.g., update the secret or token)
    • Send a PUT request with the updated JSON payload
      This gives you full control over the webhook configuration.

Resources